TIL(today i learned)/java
-
frameTIL(today i learned)/java 2020. 9. 15. 21:47
프래임은 쉽게말해 스케치북을 평평하게 받쳐주는 책상이라생각하면된다 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 import javax.swing.JFrame; class myframe extends JFrame { public myframe() { setTitle("실험중 "); setSize(300,300); setVisible(true); } } public class frame { public static void main(String[] args) { // TODO Auto-generated method stub myframe my=new myframe(); } } Colored by Color Scripter cs
-
EOF와 -1TIL(today i learned)/java 2020. 9. 11. 12:31
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 import java.io.FileReader; import java.io.IOException; public class buffer_stream_move { public static void main(String[] args) { // TODO Auto-generated method stub try { FileReader fr=new FileReader("C:\\windows\\system.ini"); char []buf=new char[1024*2]; while (true) { int n=fr.read(buf); System.out.println(buf); System.out.p..
-
버퍼 한글 출력TIL(today i learned)/java 2020. 9. 10. 23:25
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 27 28 29 30 31 32 import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.io.OutputStreamWriter; public class buffer_stream { public static FileReader FR=null; @SuppressWarnings("resource") public static void main(String[] args) { // TODO Auto-generated method stub ..
-
버퍼TIL(today i learned)/java 2020. 9. 8. 23:23
버퍼란 데이터가 움직이기전에 머무르는 장소라고 생각하면 편한다. 데이터를 하나하나 옮기지 않고 버퍼라는 저장공간에 저장했다가 한번에 내보내는 것이다 EX: 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 27 28 29 30 31 32 33 34 import java.io.BufferedOutputStream; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.io.OutputStream; import java.io.OutputStreamWriter; import jav..
-