Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
24 lines (15 loc) · 441 Bytes

File metadata and controls

24 lines (15 loc) · 441 Bytes
Copy raw file
Download raw file
Edit and raw actions

数组相关问题

题目一

Which of the following are valid array declaration for srings of 50 chars?

A. char c[][];
B. String []s;
C. String s[50];
D. Object s[50];

答案 B

int [][] iArray;
int []iArray[];
intt iArray[][];

都是可以得, 但数组不能直接指定列数或者行数. 正确的方式应该在创建数组对象是.

比如

int iArray[][] = new int[3][4]

题目二

Morty Proxy This is a proxified and sanitized view of the page, visit original site.