0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

じゃばじゃばおぼえがき

Last updated at Posted at 2019-05-20

引数入力

hikisuu.java
int input = Integer.parseInt(args[0]);

シンプルな配列

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<> リスト名 = new ArrayList<>();

//例
ArrayList<String> strList = new ArrayList<String>();

for文

for.java

for(int i = 0; i<7;i++){
		System.out.print(i+"は英語で");
		System.out.println(num[i]+"です。");
		}

拡張forループ

kfor.java

for (  変数名 :  )
  ;
}

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?