Next: Packages in J.T.W. and Java, Previous: J.T.W. Proof of concept #2 file inclusion, Up: Top [Contents][Index]
The following tutorials including full model answers can be found on my Website at the following location:
The advantage of using my online tutorials is that the tutorials have superior syntax highlighting of the code examples. See the following link Passwords for the answers to the tutorials for the passwords on my Website.
• Tutorial 1 Your first program: | Your first program and introducing functions, parameters, arguments, strings, System.out.println and comments to give you enough basic J.T.W. to get you started. | |
• Tutorial 2 Introduction to programming in Java: | Introducing chars, the difference between == and =, booleans, the if (...) then ... elseif (...) ... elseif (...) ... else ... construct, local variables, ints, the for construct and teaching you how to call existing methods of the String class but not teaching you how to write your own methods until Tutorial 9. | |
• Tutorial 3 superfor loops and for loops: | Introducing System.out.print for printing without a trailing carriage return, introducing the superfor construct, revising loops that use the for construct, introducing doubles and revising ints and chars. | |
• Tutorial 4 Four looping constructs: | Other types of loops such as superfor, while and do ... while, and revising if statements and for loops. Learning what is the best of these four looping constructs. | |
• Tutorial 5 A beer drinking song: | Using all of the J.T.W. constructs that you have learned so far to rewrite a song to be more general-purpose. | |
• Tutorial 6 Class variables: | Introducing class variables which are different from variables that are local to functions. | |
• Tutorial 7 Non-Object arrays: | Introducing non-object arrays that are either single dimensional or multi dimensional using two different initialization syntaxes and introducing function name overloading. | |
• Tutorial 8 Accessing functions and class variables from another class: | Learning how to access functions from another class and introducing boolean arrays. | |
• Tutorial 9 Mapping class variables to instance variables (also known as properties) and functions to methods: | ||
This gives you the full power of O.O.P. (Object Oriented Programming) classes. Introducing getter methods and references for accessing objects. Introducing the null keyword for representing no object and introducing the toString method, while explaining why this method is better than any other method or property for debugging your code. | ||
• Tutorial 10 Object arrays: | Introducing object arrays that are either single-dimensional or multi-dimensional. Revising two different initialization syntaxes from Tutorial 7 on non-object arrays. | |
• Tutorial 11 References to another class: | When classes have references to objects of other classes in their properties then you can set up relationships between different classes. | |
• Tutorial 12 Overloading methods: | Swapping the properties of two objects, and converting methods to functions and vice-versa. | |
• Tutorial 13 More about references: | More questions about references. | |
• Tutorial 14 Linked lists: | When a class has a reference to itself as a property then you can build linked lists out of objects of this class. WARNING: Linked lists are tricky for novice programmers to grasp. | |
• Tutorial 15 Introducing inheritance: | Introducing inheritance, polymorphism, getter and setter methods, the instanceof keyword for run-time type inquiry and introducing the Object class. Introducing the null keyword for representing no object and introducing the toString method, while explaining why this method is better than any other method or property for debugging your code. | |
• Tutorial 16 More inheritance: | Showing you how inheritance can be used to reduce the amount of duplication of code. | |
• Tutorial 17 Arrays inheritance and polymorphism: | Teaches why in most cases it is better to use polymorphism rather than run-time type inquiry. | |
• Tutorial 18 Advanced J.T.W.: | Mapping J.T.W. to Java and the internal details of the J.T.W. system, including a GNU Makefile. | |
Next: Packages in J.T.W. and Java, Previous: J.T.W. Proof of concept #2 file inclusion, Up: Top [Contents][Index]