Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个这样的字符串数组:
public static String[] SOM = new String[] { "", "","", "","something", "something","something", "something","", ""};
假设我想检查位置 4 的字符串是什么。我怎样才能只得到那个单一的字符串?
你可以做:
System.out.println(SOM[3]);