1. 뇌 자극 교재 연습문제
2. 각종 자료형 최대 크기, 최소 크기 바이너리 비교
3. 각종 부동소수점 자료형 최대 크기, .....
4. 유니코드 사용해서 한글 모두 표기

public class exam {
 public static void main(String args[]){
 
  System.out.println("example1");
 
  int total = 0;
  for(short cnt = 0; cnt<200; cnt++)
   total += cnt;
  System.out.println(total);
 
 
  System.out.println("example2");
 
 
  System.out.println(Integer.toBinaryString(Byte.MAX_VALUE));
  System.out.println(Integer.toBinaryString(Byte.MIN_VALUE));
  byte a=0;
  System.out.println(Integer.toBinaryString(a));
 
  System.out.println(Integer.toBinaryString(Short.MAX_VALUE));
  System.out.println(Integer.toBinaryString(Short.MIN_VALUE));
  short b = 0;
  System.out.println(Integer.toBinaryString(b));
 
  System.out.println(Integer.toBinaryString(Integer.MAX_VALUE));
  System.out.println(Integer.toBinaryString(Integer.MIN_VALUE));
  int c=0;
  System.out.println(Integer.toBinaryString(c));
 
  System.out.println(Long.toBinaryString(Long.MAX_VALUE));
  System.out.println(Long.toBinaryString(Long.MIN_VALUE));
  long d = 0;
  System.out.println(Long.toBinaryString(d));
 
 
  System.out.println("example3");
 
 
  System.out.println(Long.toBinaryString(Double.doubleToRawLongBits(Double.MAX_VALUE)));
  System.out.println(Long.toBinaryString(Double.doubleToRawLongBits(-Double.MAX_VALUE)));
  System.out.println(Long.toBinaryString(Double.doubleToRawLongBits(Float.MAX_VALUE)));
  System.out.println(Long.toBinaryString(Double.doubleToRawLongBits(-Float.MAX_VALUE)));
  System.out.println(Long.toBinaryString(Double.doubleToRawLongBits(Double.MIN_VALUE)));
  System.out.println(Long.toBinaryString(Double.doubleToRawLongBits(-Double.MIN_VALUE)));
  System.out.println(Long.toBinaryString(Double.doubleToRawLongBits(Float.MIN_VALUE)));
  System.out.println(Long.toBinaryString(Double.doubleToRawLongBits(-Float.MIN_VALUE)));
 
 
  System.out.println("example4");
 
 
  for(int i=44032; i<55204; i++)
   System.out.println((char)i);
 
 }
}

+ Recent posts