Sample Code
Basic programming examples
Basic input/output and arithmetic:  
Example1.java
Convert cents to dollars/coins:  
ConvertCents.java
Sort two numbers in two different ways:  
Sort2Nums.java
Find the smallest number in two different ways:  
FindSmallNum.java
Programming examples using && (AND), || (OR),
and the if
Here is an example that uses lot of && and || :  
AndOrExample.java
Here is an example that the || and a boolean variable:  
Grades.java
Loop programming examples
Loops are used to sum in various ways:  
Sums.java
Display a pryamid of asterisks:  
Pyramid.java
Find the smallest and largest number from a data file:  
MinMax.java
Display random numbers between 0 and 100:  
RandomNumbers.java
Object-oriented programming
Demonstrates a class to represent Fractions:  
Fraction.java
and its driver (holds main) to test the class:  
FractionDriver.java