Guest User

Untitled

a guest
Nov 17th, 2016
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import java.util.Scanner;
  2. class Hexa
  3. {
  4. public static void main(String args[])
  5. {
  6. Scanner input = new Scanner( System.in );
  7. System.out.print("Angka : ");
  8. int num =input.nextInt();
  9. String str = Integer.toHexString(num);
  10. System.out.println("Hexadecimal: "+str);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment