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 Java file | View Java file | This program shows you how to create a java application that will read in from keyboard and output to screen integers. We also show the importance of “order of operations” |
Example 2 – I/O With Doubles | Download Java file | View Java file | This program shows you how to create a java application that will read in from keyboard and output to screen values of type double. Using the math library, we will calcuate the length of a square and area of a circle. |
Example 3 – Algorithms With Integers | Download Java file | View Java file | This program shows you how to create a java application that will, using input from the user, show how there is many ways to the same answer. Some easier than others. |
Example 4 – Loops Using “For” | Download 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 inputed integer. The sum of all numbers will be calculated. |
Example 5 – Loops Using “While” | Download Java file | View Java file | This program will use the exact same algorithm as Example 4, using a while statement to loop through the numbers. |
Example 6 – String I/O and Parsing | Download Java file | View Java file | This program show 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 7 – Strings and Loops | Download Java file | View Java file | This program will show you to create a java application that will run many times until the user decided to quit. Input will be given in strings and converted and processed as integers. |
All | Download Java file | ||
Workshop I Guide | Download Workshop I guide (revised 2022) | ||
Open Kattis TutorialOpen Kattis Tutorial | Kattis tutorial and submission help |