CSE 142 Lecture Notes - Lecture 3: Semicolon

48 views3 pages
Verified Note
2 Oct 2018
School
Course

Document Summary

1 public class helloworld { public static void main(string[] args) { - - - jgrasp exec: java helloworld. ** every java code in this class will begin with public class followed by the title of your document. Don"t forget to include curly brackets { }! ** hit enter and then type public static void main(string[] args) ** now you can type actual lines that will appear when you run the code. System. out. println is the command that tells the system that you are writing on a new line. In the parentheses and quotations, write what you want to print. ** don"t forget the semicolon at the end of your parentheses! In java, when everything is an integer, the answer will also be an integer. ** addition, subtraction, multiplication all work the way we think they do in the interactions pane. ** java cares about type of number and value being used (string, character, number, symbol)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents