tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 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