2018/4/11[learned one-dimensional arrays and multidimensional arrays, but did the problem of choice.

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.