Chapter One problems in the foundation of Java programs

Source: Internet
Author: User

One, the problem in the course

1, know the general framework of the implementation of the program, but can not be specific to every detail, which requires the usual accumulation.

2, there is no connection between classes defined in different folders, and classes can be connected to each other through interfaces.

3, how to display the text in a dialog box, through the javax.swing to achieve.

4, why conversions between different types of variables have a lack of precision, from the low to the high type will be automatically converted, and from the high type to the low type need to be cast,theboolean type cannot be converted with other types.

5, why the value of double type is calculated, the result is not accurate, The value of double type occupies 64bit, that is The number of binary numbers, minus the highest bit indicates the sign of the bit, in the lowest bit must be with the actual data error.

Second, the problem in the experiment

1, when implementing a two-digit subtraction, each operation must be written in a different function and then called.

2, the meaning of the key word in Javax.swing.JOptionPane. inputdialog prompt input text;messagedialog display information;optiondialog Combine the other three types of dialog boxes.

3, what do I need to implement the input and output of the window? Implemented through javax.swing .

4, how to randomly generate a six-bit string, using math.random () to achieve:

Chapter One problems in the foundation of Java programs

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.