Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public class BooleanTest {
  2. public static void main(String[] args) {
  3. float a = 10.5f;
  4. float b = 10.2f;
  5.  
  6. if(a == 10.5)
  7. System.out.println("same");
  8. else
  9. System.out.println("different");
  10.  
  11. if(b == 10.2)
  12. System.out.println("same");
  13. else
  14. System.out.println("different");
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement