COMP SCI 302 Lecture Notes - Lecture 5: Polskie Radio Program I, Camel Case, Semicolon
Document Summary
*check online, program 1 will be out tomorrow. All java programs must be in a container called a class. There are many different kinds, all end with a ; semicolon. (aka s. o. pln ( ) ) it prints out to the program users. The text between the parenthesis prints, and double quotation marks. Println displays the information on a new line. Print displays info and continues on the same line. Editing- entering text for a source file (. java file) Compiling- translating a source file bytecodes. Running- using jvm to execute the bytecode (. class) That displays i remember! public class iremember public static void main (string[] args) They make your programs more readable and understandable but are ignored by the compiler. For multi-line comments: /* multi-line text */ They mark the start and end of a container"s body. They come after the heading or on the next line, correctly indented. Make sure that every brace has a partner! (opening and closing)