OOP_IO-2x_2023-mirror/src/lab5/Main.java

20 lines
458 B
Java
Raw Normal View History

2023-06-01 16:06:50 +03:00
package lab5;
public class Main {
public static void main(String[] args) {
2023-06-08 15:19:36 +03:00
Word word = new Word("Hello");
Word word2 = new Word(new Letter[]{
new Letter('H'),
new Letter('e'),
new Letter('l'),
new Letter('l'),
new Letter('o'),
});
2023-06-01 16:06:50 +03:00
2023-06-08 15:19:36 +03:00
System.out.println(word.equals(word2));
System.out.println(word == word2);
2023-06-01 16:06:50 +03:00
System.out.println("Done!");
}
}