- The first program will be an example of the lab from last week.
- This example uses a nested for loop to create a triangle design. Triangle.java
- This is an introduction to the Switch statement. Switch
- This program uses compound statements in if/else statements, compound statements such as AND's and OR's.
Group2
- This program shows a single & which is bit operations, not logical AND. Binary Stuff This program will lead me into teaching HEX, Binary, Decimal conversion.
- The following example is a problem that you should be able to solve. You need to use control structures as well as the API.
Assignment Example
This is assignment you will take a string from the user and then count the number of each vowel that is in the String.(it should be done in a method with the vowel as a parameter).
Sample Output
Give me a sentence:
How Now Brown Cow sat on a sink
There were 2 a's
There were 0 e's
There were 1 i's
There were 5 o's
There were 0 u's
There were 0 y's
Because sometimes Y is a vowel
This assignment is an example you don't have to turn it in.
Here is the answer