mirror of
https://github.com/LeCoupa/awesome-cheatsheets.git
synced 2025-11-08 14:01:35 +00:00
adds a space between 'go' and 'to' on line 15 and and delete the void modifier on lines 64, 65, and 66
This commit is contained in:
@@ -12,7 +12,7 @@ public class HelloWorld {
|
|||||||
|
|
||||||
### COMPILATION & EXECUTING JAVA CODE
|
### COMPILATION & EXECUTING JAVA CODE
|
||||||
|
|
||||||
* Goto your program directory in terminal (Assumed JAVA Path is set)
|
* Go to your program directory in terminal (Assumed JAVA Path is set)
|
||||||
* After for compile your code
|
* After for compile your code
|
||||||
|
|
||||||
> **javac HelloWorld.java (your program file name)**
|
> **javac HelloWorld.java (your program file name)**
|
||||||
@@ -61,9 +61,9 @@ int c = a + b;
|
|||||||
### PRINTING
|
### PRINTING
|
||||||
```java
|
```java
|
||||||
String s = "Happy Coding Folks!!"
|
String s = "Happy Coding Folks!!"
|
||||||
void System.out.print(String s) //print s
|
System.out.print(String s) //print s
|
||||||
void System.out.println(String s) //print s, followed by a newline
|
System.out.println(String s) //print s, followed by a newline
|
||||||
void System.out.println() //print a newline
|
System.out.println() //print a newline
|
||||||
```
|
```
|
||||||
|
|
||||||
### PARSING COMMAND-LINE ARGUMENTS
|
### PARSING COMMAND-LINE ARGUMENTS
|
||||||
|
|||||||
Reference in New Issue
Block a user