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. float x1 = 12.345678910f;
  13. double y1 = 12.345678910d;
  14. int i1 = 12345;
  15. long l1 = 12345678941L;
  16.  
  17. System.out.println(x1);
  18. System.out.println(y1);
  19. System.out.println(i1);
  20. System.out.println(l1);
  21. }
  22. }
Success #stdin #stdout 0.07s 55188KB
stdin
Standard input is empty
stdout
12.345679
12.34567891
12345
12345678941