public static String[] months = {"January", "February", "March",
"April", "May", "June",
"July", "August", "September",
"October", "November", "December"};
1次元配列と呼ばれていますか?これはどのような配列ですか?
public static String[] months = {"January", "February", "March",
"April", "May", "June",
"July", "August", "September",
"October", "November", "December"};
1次元配列と呼ばれていますか?これはどのような配列ですか?
はい。
通常、単に文字列配列と呼ばれます。
一次元。 –
通常、私はそれを小さな脆弱性と呼んでいます。 'YourClass.months [4] =" December ";' –
StackOverflow、Javaドキュメント版。 – Stephen