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 lesson9.waitnotify; | |
import java.awt.*; | |
public class Car { | |
private int x = 0; | |
private int y = 160; | |
private Color color; |
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 lesson9.waitnotify; | |
import java.awt.*; | |
public class Car { | |
private int x = 10; | |
private int y = 160; | |
private Color color; |
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 lesson9.waitnotify; | |
import java.awt.*; | |
public class Car { | |
private int x = 50; | |
private int y = 160; | |
private Color color; |
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 lesson9; | |
import java.awt.*; | |
public class Ball implements Runnable{ | |
private int x; | |
private int y; | |
private int speed; | |
private Color color; |
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 lesson8.simplelist; | |
import java.util.Arrays; | |
public class DemoSimpleList { | |
public static void main (String[] args) { | |
FileSimpleList fileSimpleList = new FileSimpleList(); |
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 lesson8.serialization; | |
import java.io.BufferedReader; | |
import java.io.InputStreamReader; | |
import java.net.URL; | |
import java.net.URLConnection; | |
public class Demo { | |
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 lesson8.chars; | |
import java.io.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.zip.ZipEntry; | |
import java.util.zip.ZipInputStream; | |
import java.util.zip.ZipOutputStream; | |
public class DemoZip { |
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 lesson8.chars; | |
import java.io.*; | |
public class DemoSystemOut { | |
public static void main(String[] args) { | |
try (OutputStream outputStream = new FileOutputStream(new File("system.out.txt")); |
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 lesson8.chars; | |
import java.io.*; | |
public class DemoChar { | |
public static void main(String[] args) { | |
File file = new File("/Users/anna/Documents/directorytest/testtest.txt"); | |
String currentEncoding = "ISO_8859_1"; |
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 lesson8.file; | |
import java.io.*; | |
public class DemoFile { | |
public static void main(String[] args) { | |
copyFile(new File("/Users/anna/Documents/directorytest/logika.pdf")); |
NewerOlder