Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Percobaan;
- public class MaxMin {
- public static void main(String[] args) {
- System.out.println("Nilai Maximum");
- Byte byteObj = new Byte(Byte.MAX_VALUE);
- System.out.println(byteObj);
- Short shortObj = new Short(Short.MAX_VALUE);
- System.out.println(shortObj);
- Integer intObj = new Integer(Integer.MAX_VALUE);
- System.out.println(intObj);
- Long longObj = new Long(Long.MAX_VALUE);
- System.out.println(longObj);
- Float floatObj = new Float(Float.MAX_VALUE);
- System.out.println(floatObj);
- Double doubleObj = new Double(Double.MAX_VALUE);
- System.out.println(doubleObj);
- System.out.println("Nilai Minimum");
- Byte byteObj2 = new Byte(Byte.MIN_VALUE);
- System.out.println(byteObj2);
- Short shortObj2 = new Short(Short.MIN_VALUE);
- System.out.println(shortObj2);
- Integer intObj2 = new Integer(Integer.MIN_VALUE);
- System.out.println(intObj2);
- Long longObj2 = new Long(Long.MIN_VALUE);
- System.out.println(longObj2);
- Float floatObj2 = new Float(Float.MIN_VALUE);
- System.out.println(floatObj2);
- Double doubleObj2 = new Double(Double.MIN_VALUE);
- System.out.println(doubleObj2);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment