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.
假设 a 是一组字符串。
String[] a看不懂和 的区别String a[] 是不是同一个意思?我需要基于android的答案
String[] a
String a[]
如果您问的是Java,那么,是的,两者具有相同的含义。
String[] a是首选,因为它将整个类型定义保持在一起并且在视觉上与标识符不同。
String a[]只是在语言中使程序员更容易学习C++。CJava 语言的创建者最初试图说服 C++ 开发人员通过采用熟悉的语法来学习 Java。
C++
C