🔒 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
  • 715
    Views
  • 3
    Participants
Last reply from:
lemmor

Trending Topics

Online now

Members online
890
Guests online
9,101
Total visitors
9,991

Forum statistics

Threads
2,336,591
Posts
29,292,206
Members
1,130,884
Latest member
sparkboom
Back
Top