j1-1_strings
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
j1-1_strings [2024/12/05 05:19] – appledog | j1-1_strings [2024/12/05 06:40] (current) – appledog | ||
---|---|---|---|
Line 54: | Line 54: | ||
=== Main.java | === Main.java | ||
< | < | ||
+ | import java.util.Scanner; | ||
+ | |||
public class Main { | public class Main { | ||
public static void main(String[] args) { | public static void main(String[] args) { | ||
Line 93: | Line 95: | ||
Teacher may discuss the answers here. | Teacher may discuss the answers here. | ||
- | == The Code | + | == Don't Read This Section |
Here's an explanation of what each line of the program does. We will look at it like a computer looks at it. First, here's the basic starter program: | Here's an explanation of what each line of the program does. We will look at it like a computer looks at it. First, here's the basic starter program: | ||
Line 131: | Line 133: | ||
This means the function doesn' | This means the function doesn' | ||
- | == The Code | + | == The Code (Read This Part!) |
=== System.out.println(" | === System.out.println(" | ||
This kind of code just prints a message out. | This kind of code just prints a message out. |
j1-1_strings.1733375947.txt.gz · Last modified: 2024/12/05 05:19 by appledog