Lecture Date: Wednesday, January 28
Now that we’ve gone through the break-neck pace of seeing a ton of stuff with Turtle, we’ll slow down and go through all the component parts that we used. We’ll also review how the submission system works. Yeah Homework!
It would be helpful if you have at least scanned Chapter 2 - we’ll be covering a decent amount of that chapter today and Monday.
Main topics for today:
- Review the parts of a program (code blocks,
public static void main, variables)
- Review how output works with
- Do some basic math and output it to the screen
- Introduce how to get user input using
- How to work with the
- How to manipulate a
An API is the list of methods that are provided with a programming language or programming tool.
For example, if
Strings then you can do the following:
|returns the number of characters in |
|returns a new |
|returns the first character in |
|returns the fourth character in |
|returns the number that |
Code from today: BasicProgramming.java