Jad home page: http://www.kpdus.com/jad.html#download
[ 사용방법 ]
1. 클래스 하나만 디컴파일시
example1.class 를 디컴파일시
jad.exe 를 디컴파일할 파일과 동일한 폴더에 놓는다.
Command 창에 jad -o -sjava example1.class
결과물 : ‘example1.java’
2.
Jad home page: http://www.kpdus.com/jad.html#download
[ 사용방법 ]
1. 클래스 하나만 디컴파일시
example1.class 를 디컴파일시
jad.exe 를 디컴파일할 파일과 동일한 폴더에 놓는다.
Command 창에 jad -o -sjava example1.class
결과물 : ‘example1.java’
2.
BufferedReader br = null; try { URL url = new URL("http://www.empas.com"); br = new BufferedReader(new InputStreamReader(url.openStream())); String line = null; while ((line = br.readLine()) != null) { System.out.println(line); } } catch (MalformedURLException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } finally { try { br.close(); } catch (IOException
FileInputStream, FileOutputStream
FileInputStream fi = new FileInputStream(new File("d:\\temp\\temp.xls")); FileOutputStream fo = new FileOutputStream("d:\\temp\\temp2.xls"); int b; while ((b = fi.read()) != -1) { fo.write(b); fo.flush(); } fi.close(); fo.close();
RandomAccessFile
public static void main(String[] args) throws IOException { String s = "ILoveJava~"; String q = "Jabook!"; RandomAccessFile rf = new RandomAccessFile("RandomAccessFile.txt", "rw");
스트림의 정의
장치로부터 데이터를 얻거나 보낼 때 사용되는 중간 매개체 역활을 하는 놈
입력 스트림 비교
입력 스트림은 데이터를 먼저 스트림으로 읽어들입니다. 그리고 스트림에 존재하는 데이터를 하나씩 읽어들일 수 있습니다.
출력 스트림 비교
출력 스트림으로 데이터를 보냅니다. 그리고 출력 스트림에 보낸 데이터를 비워 버립니다. 그렇게 되면 출력 스트림에 존재하던 데이터가
스레드를 생성하는 방법
/* Thread 클래스를 상속 받는 방법과 run() 메서드 재정의 */ import java.lang.Thread; class NewThread exends Thread { public void run() { /* Thread Body */ } } /* Thread 클래스를 상속받았을 경우 스레드를 start 하는 방법 */ NewThread n = new NewThread(); n.start();
Vector 클래스
데이터의 입력한 순서에 따라서 데이터 추출, index로 추출
Vector vector = new Vector(); vector.addElement(new Character('A')); vector.addElement(new String("test")); vector.addElement(new Integer(100)); vector.addElement(new Integer(200)); vector.insertElementAt(new Float(3.14), 1); // 1번째에 중간 삽입 vector.setElementAt(new String("Set"), 3); // 3번째 존재하는 것 제거후 다시 삽입 System.out.println("vector의 0번째:" + (Character)vector.elementAt(0)); if (vector.contains(new String("Set"))) { // vector에
배열의 특징
배열의 선언 & 초기화
int[] mydream = new int[]{5,4,6,3,2,6}; int[] mytarget = {100, 200, 300, 400, 500};
배열의 복사
int[] mydream = new int[]{5, 4, 6, 9, 7, 9};
int[] mytarget =
abstract