1. "Hello, World!"
  2. Variables and Types
  3. Arrays
  4. While, If, For
  5. ...Problem Set 0
  6. Static Methods
  7. Static Fields
  8. String Conversion
  9. Objects
  10. Threading
  11. Strings
  12. ...Problem Set 1.5
  13. Packages
  14. Complex Numbers
  15. Abstract classes
  16. Interfaces
  17. Autoboxing
  18. ...Problem Set 1
  19. enum
  20. Inner Classes
  21. Polymorphism
  22. Tanks!
  23. Callbacks
  24. Exceptions
  25. File I/O
  26. ...Problem Set 2
  27. Regular Expressions

...Problem Set 1.5

  1. Write a program that capitalizes the first letter of each word in the argument list, and makes the rest of the letters lower case.
  2. Implement your own version of String (call it MyString) that is initialized with an array of characters. Give it the methods: charAt(), length() and substring(). Make them work just like they do on the standard String class.
  3. Write a method that converts a string to an integer (i.e. works like Integer.parseInt()).
    • Hint: Use StringBuffer (it is discussed in the strings lesson).
    • Hint: You can find the value of a single digit as follows:
    Digit.java
    1public class Digit {
    2    static int getDigit(char c) {
    3        // subtract the zero character's value from c
    4        return c - '0';
    5    }
    6    public static void main(String[] args) {
    7        String digits = "0123456789";
    8        for(int i=0;i<digits.length();i++)
    9            System.out.println("digit = "+getDigit(digits.charAt(i)));
    10    }
    11}
    $ javac Digit.java
    
    $ java Digit
    digit = 0
    digit = 1
    digit = 2
    digit = 3
    digit = 4
    digit = 5
    digit = 6
    digit = 7
    digit = 8
    digit = 9
    
  4. Write a program that evaluates arguments on the command line where each argument
    java ACalc 3 + 4
    java ACalc 3 - 2
    java ACalc 5 * 2
    java ACalc 9 / 3