🔒 Closed Array explanation

Status
Not open for further replies.

Bhadz141

Grasshopper
public class Program {
public static void main(String[] args) {

String A,B,C,D;

A = "1";
B = "2";
C = "3";
D = "4";

String[ ] myNames = { A, B, C, D};
System.out.println(myNames[2]);
}
}
 
Status
Not open for further replies.

About this Thread

  • 2
    Replies
  • 720
    Views
  • 3
    Participants
Last reply from:
lemmor

Trending Topics

Online now

Members online
537
Guests online
11,887
Total visitors
12,424

Forum statistics

Threads
2,360,908
Posts
29,411,706
Members
1,063,457
Latest member
norlan15
Back
Top