School of Computer Science
University of Windsor
Dr. Ziad Kobti
School of Computer Science
University of Windsor
Office: LT5101 email: kobti@uwindsor.ca
Phone: (519)253-3000 ext 3792
NAME | DOWNLOAD | VIEW | DESCRIPTION |
Example 1 – I/O With Integers | Download the Java file | View Java file | This program shows you how to create a Java application that will use a for statement to create a loop to count from 1 until n, where n is a user-inputted integer. The sum of all numbers will be calculated. |
Example 2 – I/O With Doubles | Download the Java file | View Java file | This program shows you how to create a Java application that will read in from the keyboard and output to the screen values of type double. Using the math library, we will calculate the length of a square and the area of a circle. |
Example 3 – Algorithms With Integers | Download the Java file | View Java file | This program demonstrates how to create a Java application that, using user input, illustrates the multiple approaches to the same solution. Some are easier than others. |
Example 4 – Loops Using “For” | Download Java file | View Java file | This program will utilize the same algorithm as Example 4, employing a while statement to iterate through the numbers. |
Example 5 – Loops Using “While” | Download the Java file | View Java file | This program shows you how to create a Java application that uses a String Tokenizer to parse a line and then use the information gathered. Try and Catch blocks are introduced. |
Example 6 – String I/O and Parsing | Download the Java file | View Java file | This program demonstrates how to create a Java application that uses a String Tokenizer to parse a line and then utilize the gathered information. Try and Catch blocks are introduced. |
Example 7 – Strings and Loops | Download the Java file | View Java file | This program will demonstrate how to create a Java application that runs repeatedly until the user chooses to quit. Input will be given in strings and converted and processed as integers. |
All | Download all files | ||
Workshop I Guide | Download the Workshop Guide | ||
Open Kattis TutorialOpen Kattis Tutorial | Kattis tutorial and submission help |