fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // System.out.println("byte min value= "+Byte.MIN_VALUE);
  13. // System.out.println("byte max value= "+Byte.MAX_VALUE);
  14. // System.out.println("byte requires= "+Byte.SIZE+ "bytes");
  15. // System.out.println("byte requires= "+Byte.BYTES+ "bytes");
  16. // System.out.println("Integer min_value= "+Integer.MIN_VALUE);
  17. // System.out.println("Integer max_value= "+Integer.MAX_VALUE);
  18. // System.out.println("flaot mix_value= "+Float.MIN_VALUE);
  19. // System.out.println("float max_value= "+Float.MAX_VALUE);
  20. // System.out.println("character mix_value= "+(int)Character.MIN_VALUE);
  21. // System.out.println("character max_value= "+(int)Character.MAX_VALUE);
  22. System.out.println("---------------------------------------------------------------------------------------------------------------------------------------------------------");
  23. System.out.println ("|data types |min Values |max values |no of bytes |no of bits |");
  24. System.out.println("---------------------------------------------------------------------------------------------------------------------------------------------------------");
  25. System.out.println ("|bytes |"+Byte.MIN_VALUE+" |"+Byte.MAX_VALUE+" |"+Byte.BYTES+" |"+Byte.SIZE+" |");
  26. System.out.println("---------------------------------------------------------------------------------------------------------------------------------------------------------");
  27.  
  28. }
  29. }
Success #stdin #stdout 0.08s 49144KB
stdin
Standard input is empty
stdout
---------------------------------------------------------------------------------------------------------------------------------------------------------
|data types     |min Values                             |max values                                  |no of bytes               |no of bits           |
---------------------------------------------------------------------------------------------------------------------------------------------------------
|bytes          |-128                                   |127                                         |1                         |8                    |
---------------------------------------------------------------------------------------------------------------------------------------------------------