Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,3 @@
|
|||
Scanner sc = new Scanner(System.in); //or any other InputStream or String
|
||||
sc.useRadix(base); //any number from Character.MIN_RADIX (2) to CHARACTER.MAX_RADIX (36)
|
||||
sc.nextInt(); //read in a value
|
||||
|
|
@ -0,0 +1 @@
|
|||
int number = Integer.parseInt(stringNum, base);
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
Integer.decode("0xabcf123"); // hex
|
||||
Integer.decode("07651"); // octal
|
||||
Integer.decode("123459"); // decimal
|
||||
Loading…
Add table
Add a link
Reference in a new issue