initial
This commit is contained in:
commit
74ae93a96e
1 changed files with 94691 additions and 0 deletions
15
joplin notion extension/Web Development/Java/Syntax.md
Normal file
15
joplin notion extension/Web Development/Java/Syntax.md
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
Syntax
|
||||
|
||||
- Template string in java
|
||||
```java
|
||||
String.format("INSERT INTO customers values (%d, '%s')", 2, "hey2")
|
||||
```
|
||||
|
||||
- for each loop in java
|
||||
```java
|
||||
String[] cars = {"Volvo", "BMW", "Ford", "Mazda"};
|
||||
for (String i : cars) {
|
||||
System.out.println(i);
|
||||
}
|
||||
|
||||
```
|
||||
Loading…
Reference in a new issue