Activity 3.11
Source Code
public class Activity3_11 {
public static void main(String[] args) {
System.out.println("Activity 3.11");
// Example 1
// Example 2
}
}
Learner.java
/**
* A simple class representing a Learner with multiple constructors
*/
public class Learner {
// Instance variables
/**
* Default constructor - creates a Learner with default values
*/
/**
* Parameterized constructor - creates a Learner with specific values
* @param name the learner's name
* @param age the learner's age
*/
// Getter methods
// Method to display learner information
}
A311Problem1.java
import java.util.*;
public class A311Problem1 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Problem 1");
}
}
A311Problem2.java
import java.util.*;
public class A311Problem2 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Problem 2");
}
}
Last updated