Some tips on Java

Source: Internet
Author: User

1.

Every time you hit the output statement "System.put.println", do you still have one letter to play? How many times do you feel particularly boring?

In fact, under the Eclipse development platform you can enter SYSO first, and then press the alt+/key at the same time to quickly break into the output statement. When you get used to it, you'll feel very comfortable.

2.

In a lot of times, the topic requires output to output a line, rather than a newline output, for example, when splitting an integer to each line of output, we usually most commonly used is "System.out.println", many beginners only know this output statement, exhausted a variety of methods, Either give up or the implementation is more complex, in fact, Java output statements have many kinds, there are other functions, such as the formatted output of printf, do not change the output of print and so on. So to achieve the non-newline output simply change the println to print.

Some tips on Java

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.