Dr. Ziad Kobti
School of Computer Science
University of Windsor
Office: LT5101 email: kobti@uwindsor.ca
Phone: (519)253-3000 ext 3792

Margaret Garabon
School of Computer Science
University of Windsor
Email: garabon@uwindsor.ca
Phone: (519)253-3000 ext 3713

Shaon Shuvo
School of Computer Science
University of Windsor
Email: shaons@uwindsor.ca
Phone: (519)253-3000 ext 3774

Name
Download
View
Description
Example 1 – I/O With Integers
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
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
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”
This program will utilize the same algorithm as Example 4, employing a while statement to iterate through the numbers.
Example 5 – Loops Using “While”
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
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
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
Workshop I Guide
Download the Workshop Guide
Open Kattis TutorialOpen Kattis Tutorial
Scroll to Top