01:198:111 Lecture 2: rec2
cyansea-lion159 and 56 others unlocked
47
01:198:111 Full Course Notes
Verified Note
47 documents
Document Summary
Your peer leader will be making sure you are able to compile and run java code in recitation. Please have the jdk downloaded before recitation begins. Exercise 1: basic syntax/typing find the bug! Declaration/assignment int x = 5 double = a; char f" = g; boolean b = true. Typing (are these declarations correct or incorrect?) int x = 2. 0; boolean y = false; char a = b; double e = 100. Boolean expressions if ( boolean == true) if ( var = true) if ( boolean == false ) if ( var == 5 & x = 3) . Public static void main (string [] args) { string s == goodbye!"; system out. println(hello world!