Tasks marked with * are extra credit. Work on these tasks only if you are not pressed for time.
System.out.println("Welcome to\njava world!");
right after the commented-out line. Recompile and run the
program. What will be printed by the program? Write your answer on the
Wiki page. Comment out the new line.
int n = 6;
System.out.println("n = " + n);
What gets printed? What happens if you change 6 in the first line to
5? Write the answer on the Wiki page.
int n = 5;
int m = 7;
Change the program so that it prints
n = 5, m = 7
Compile and test your program.
n = 3, m = 4
If it doesn't, think of how you can fix the program.
public class LabOneProbTwo {
public static void main(String[] args) {
Int x = 5.0
double y = 2.4;
y = x + 3.3;
System.println("x = " + x + " y = " + );
}
}