Advertisement
ruhul0

Comparison

Mar 8th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.25 KB | None | 0 0
  1.  
  2. public class Comparison {
  3.  
  4.     public static void main(String[] args) {
  5.         float first = 3.9f;
  6.         float second = 3.91f;
  7.         if (first > second)
  8.             System.out.println("First is bigger");
  9.         else
  10.             System.out.println("Second is bigger");
  11.  
  12.     }
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement