@@ -2,5 +2,7 @@
class Main {
public static void main(String args[]){
System.out.println("Hello Java");
+ Task t1 = new Task("T1", 1);
+ t1.describe();
}
@@ -0,0 +1,15 @@
+
+class Task {
+ private String name;
+ private int id;
+ public Task(String name_, int id_) {
+ name = name_;
+ id = id_;
+ }
+ public void describe() {
+ System.out.println(id + ":" + name);
+}