The textbook is the Java language Program design of Tsinghua University Press
Today's lecture is about one-dimensional arrays and multidimensional arrays
A two-dimensional array is a combination of multiple one-dimensional arrays.
A multidimensional array is an accumulation of successive downward arrays.
Like what:
Three-dimensional =n two-dimensional =nxm one-dimensional
Although the study is fur, the exercise will work hard to do in the near future!
The problem of the third chapter of PO
Just finished the modified
3-3
1 PackageJavatext;2 3 ImportJava.util.Scanner;4 Public classP3_3 {5 6 Public Static voidMain (string[] args) {7 //TODO auto-generated Method Stub8Scanner input =NewScanner (system.in);9SYSTEM.OUT.PRINTLN ("Please input a B c d E F");Ten DoubleA =input.nextdouble (); One Doubleb =input.nextdouble (); A Doublec =input.nextdouble (); - DoubleD =input.nextdouble (); - DoubleE =input.nextdouble (); the Doublef =input.nextdouble (); - Doublex, y; - - + - if(a*d-b*c==0) +System.out.println ("The equation has no solution."); A Else at { - -X= ((e*d)-(B*F))/(a*d-b*c); -Y= ((a*f)-(E*C))/(a*d-b*c); - -System.out.println ("x=" +x+ ", y=" +y); in } - to
2018/4/11[learned one-dimensional arrays and multidimensional arrays, but did the problem of choice.