-7

我有一个这样的字符串数组:

 public static String[] SOM = new String[] { 
    "", "","", "","something", "something","something", "something","", ""};

假设我想检查位置 4 的字符串是什么。我怎样才能只得到那个单一的字符串?

4

1 回答 1

3

你可以做:

System.out.println(SOM[3]);
于 2012-11-11T09:58:30.630 回答