Home > Back-end >  Why couldn't read the myeclipse array data
Why couldn't read the myeclipse array data

Time:09-27

Code:
Package test.

The class D200_Card {
Long card_num;
Double balance;
D200_Card (long n, double b) {
Card_num=n;
The balance=b;
}
}
The class array10 {
Public static void main (String args []) {
Int [] x;
D200_Card dc [], d1;
X=new int [3].
Dc new D200_Card [2];
System. The out. Println (" x="+ x +" dc="+ dc);

System. Out.println (" -- --? -- -- -- ");
System. The out. Println (" x="+ x [0]).
System. Out. Println (" dc "[1] + [1]) to direct current (dc);

X [0]=20;
D1=new D200_Card,50.0 (280001);
Dc [0]=new D200_Card,50.0 (280001);
Dc [1]=new D200_Card,40.0 (280002);
System. The out. Println (" -- -- -- -- -- -- -- ");
System. The out. Println (" x="+ x [0]).
System. Out. Println (" dc "[1] + [1]) to direct current (dc);
System. The out. Println (d1);
}
}

The array of data read out that is why
  • Related