Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class BooleanTest {
- public static void main(String[] args) {
- float a = 10.5f;
- float b = 10.2f;
- if(a == 10.5)
- System.out.println("same");
- else
- System.out.println("different");
- if(b == 10.2)
- System.out.println("same");
- else
- System.out.println("different");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement