Guest User

Rangga Biner desimal

a guest
Nov 11th, 2016
130
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 BinaryToDecimal {
  3. public static void main(String args[]){
  4. Scanner input = new Scanner( System.in );
  5. System.out.print("Angka biner: ");
  6. String binaryString =input.nextLine();
  7. System.out.println("Desimal : "+Integer.parseInt(binaryString,2));
  8. }
  9. }
Add Comment
Please, Sign In to add comment