import java.io.*;
public class MagicWord{
public static void main(String args[]) throws Exception{
FileInputStream fis=new FileInputStream("MagicWord.class");
int ch;
int count=0;
while((ch=fis.read())!=-1){
System.out.printf("%x",ch);
count++;
if(count==4)
break;
}
}
}
public class MagicWord{
public static void main(String args[]) throws Exception{
FileInputStream fis=new FileInputStream("MagicWord.class");
int ch;
int count=0;
while((ch=fis.read())!=-1){
System.out.printf("%x",ch);
count++;
if(count==4)
break;
}
}
}
No comments:
Post a Comment