Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Note:
for the delimiter, use it after typing each word! If you type mahesh##is, instead of
mahesh##is##, then the program will wait for your input.
Comments, Indenting, Naming a Constant and Calculating
15. CircleCalculation.java
16. CircleCalculation2.java
The constant named is pi.
For calculation, see also Listing 2.9, Lewis and Lofton, p89.
Variables
17. EggBasket.java (no user input)
18. EggBasket2.java (user inputs the numbers)
First exposure to algorithms
19. ChangeMaker.java
See java_algorithms_ChangeMaker.odt for explanation.
Demonstration of the String class methods
20. StringDemo.java
Doing selections: if-else branching, and projects in NetBeans IDE
21. BankBalance (Savitch, p131)
22. StringEqualityDemo (Savitch, p138) - shows if two user input strings are equal as they stand, or
equal if we ignore the case.
1. Includes 3 if-else statements, one after the other
2. Methods: equals(), equalsIgnoreCase()
32.