cd62131

VabluesOfExample

Feb 4th, 2014
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 5 0.30 KB | None | 0 0
  1. public class ValuesOfExample {
  2.   public static void main(String[] args) {
  3.     String[] ss = {"1", "10", "11", "100"};
  4.     for (int i = 2; i < 17; i++) {
  5.       for (String s: ss) {
  6.         System.out.println("ValueOf(" + s + ", " + i + ") = " +
  7.           Integer.valueOf(s, i));
  8.       }
  9.     }
  10.   }
  11. }
Add Comment
Please, Sign In to add comment