CS130 - 3/14/2011
- news
- A simpler way to do the coin problem
- Java programming (at last!): towards writing your own editor. Reading from files.
- public static void main(String[] args)
- sout - System.out.println
- variables (all information is stored in variables): String, int
- the assignment statement ::= <variable> = <expression>
- The message statement -- object.message(parameters);
- TextArea - a familiar built-in Text Component
- setText("whatever")
- getText()
- append("whatever")
- MyReader - a convenience class for reading files
- MyReader mr = new MyReader()
- mr.hasMoreData()
- mr.giveMeTheNextLine()
- mr.close()
- Lab demos/help