Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ValuesOfExample {
- public static void main(String[] args) {
- String[] ss = {"1", "10", "11", "100"};
- for (int i = 2; i < 17; i++) {
- for (String s: ss) {
- System.out.println("ValueOf(" + s + ", " + i + ") = " +
- Integer.valueOf(s, i));
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment