0
0

More than 1 year has passed since last update.

Integer.decode を検証

Posted at
    public static void main(String[] args) {
        Integer i = Integer.decode("1");  //Decimal
        System.out.println(i);
        i = Integer.decode("0xA");  //Hex
        System.out.println(i);
        i = Integer.decode("#A");  //Hex
        System.out.println(i);
        i = Integer.decode("011");  //Octal
        System.out.println(i);
    }
1
10
10
9
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0