Java program should note:
The source file of Java must end with the extension. Java
The main file name must be consistent with the class file name
Note the case sensitivity of each letter.
The blank space can only be a halfwidth space character or a Tab character
Labels:
Handler is a class under java. util. Handler.
Response. Next ()
Vertex. nextint ()
Response. nextfloat ()
Parser. nextboolean ()
Bufferedreader:
The bufferedreader class is a class provided in the Java. Io package.
The Readline () method of the bufferedreader object must handle java. Io. ioexception exceptions. The exception handling mechanism is provided by Java for programmers to capture Possible Errors in the program. Currently, the ioexception processing method is to add throws ioexception to the main () function.
Bufferedreader accepts a java. Io. Reader object during construction. When reading standard input strings, you can use Java. Io. inputstreamreader, which inherits the reader class.
Create a buffer object:
Bufferedreader buff = new bufferedreader (New inputstreamreader (system. In ));
Standard Input/Output string:
You can reposition the output to a file, as long as the program is executed, use> to locate the output result to the specified file.
The standard error output string err is automatically enabled after the program is executed. It will output the specified string to the display device or other specified devices. Unlike the standard output string out, err immediately displays the specified information and is not located again.
Convert decimal to binary:
Integer. tobinarystring (INT)