fork download
  1. class Test1
  2. {
  3. public static void main(String s[])
  4. {
  5. float f = 75.0f;
  6. double d = 75.0;
  7. int i = 75;
  8.  
  9. if( f == d )
  10. {
  11. if( f == i )
  12. {
  13. System.out.println("f, d and i are equal");
  14. }
  15. else
  16. {
  17. System.out.println("f, d are equal but i is not equal");
  18. }
  19. }
  20. else
  21. {
  22. System.out.println("f and d are not equal");
  23. }
  24. }
  25. }
Success #stdin #stdout 0.08s 46800KB
stdin
Standard input is empty
stdout
f, d and i are equal