More Related Content
More from Lynn Langit (20)
TKP notes for Java
- 3. Create and Assign Variables
String zipcode = “90210”;
//the current zipcode is 90210
- 6. Conditionals – If / Else
int test = 0;
if (test < 0)
{ //do something }
else
{ //do something else }
- 9. To view a Value -- Getters
GetPenColor ( );
GetPenWidth ( );
GetSpeed ( );
- 10. To Change a Value -- Setters
SetPenColor (Colors.Reds.Red);
SetPenWidth ( 5 );
SetX ( 10 );