This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lesson5_8; | |
import javax.imageio.ImageIO; | |
import javax.swing.*; | |
import java.awt.*; | |
import java.awt.image.ImageObserver; | |
import java.io.File; | |
import java.io.IOException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lesson5_8; | |
import javax.swing.*; | |
import java.awt.*; | |
public class JJFrame extends JPanel{ | |
public static void main(String[] args) { | |
new JJFrame(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lesson5_8; | |
import javax.swing.*; | |
import java.awt.*; | |
public class JJFrame extends JPanel{ | |
public static void main(String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lesson5_8; | |
import javax.swing.*; | |
public class JJFrame { | |
public static void main(String[] args) { | |
JFrame f = new JFrame(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lesson7.hashcodeoverriding; | |
public class Address { | |
private String city; | |
private String street; | |
private int house; | |
public Address() { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lesson7.hashcodeoverriding; | |
public class Launcher { | |
public static void main(String[] args) { | |
Person p1 = new Person(); | |
Person p2 = new Person(); | |
p1.setName("Ivan"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lesson7.CompList; | |
import java.util.Comparator; | |
public class CompList implements Comparator { | |
@Override | |
public int compare(Object o1, Object o2) { | |
String oStr1 = (String) o1; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lesson7.mylist; | |
import java.util.Iterator; | |
public class Launcher { | |
public static void main(String[] args) { | |
SimpleLinkedList sl = new SimpleLinkedList(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lesson7.mylist; | |
public class Launcher { | |
public static void main(String[] args) { | |
SimpleLinkedList sl = new SimpleLinkedList(); | |
sl.addFirst("object1"); | |
sl.addFirst("object2"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package lesson7.mylist; | |
public class Launcher { | |
public static void main(String[] args) { | |
SimpleLinkedList sl = new SimpleLinkedList(); | |
sl.addFirst("object1"); |