Argument input
hikisuu.java
int input = Integer.parseInt(args[0]);
Simple array
hairetsu.java
String[] num= new String[7];
num[0]="zero";
num[1]="one";
num[2]="two";
num[3]="three";
num[4]="four";
num[5]="five";
num[6]="six"
ArrayList
arraylist.java
ArrayList
ArrayList<Mold>List name= new ArrayList<Mold>();
//Example
ArrayList<String> strList = new ArrayList<String>();
for statement
for.java
for(int i = 0; i<7;i++){
System.out.print(i+"Is in english");
System.out.println(num[i]+"is.");
}
Extended for loop
kfor.java
for (Type variable name:formula)
Sentence;
}
Recommended Posts