forked from igortereshchenko/Java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRunner.java
More file actions
26 lines (18 loc) · 700 Bytes
/
Runner.java
File metadata and controls
26 lines (18 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package LessonObject;
/**
* Created by student on 19.03.2018.
*/
public class Runner {
public static void main(String[] arg){
System.out.println("Hello from JAVA!!!");
Author author = new Author("Tom");
Author author2 = new Author("Tom");
Author author3 = new Author("Mike");
System.out.println(author.getName());
System.out.println(author.toString());
String text="some text";
System.out.println("Comparison with other obj " +author.equals(text));
System.out.println("Comparison with author Tom "+author.equals(author2));
System.out.println("Comparison with author Mike "+author.equals(author3));
}
}