Java characters, translators, Boolean__java

Source: Internet
Author: User

(char) 0+: Indicates the character corresponding to the number 0

Apply Loop statement: for (int i=0;i<127;i++) {
System.out.println ((char) i+ ":" +i);}

Output 0~126 corresponding character (Nuicode code)

The translate character \ n carriage return \ t tab stop characters \ \ means \ ' represents ' \ ' means: ' \u4e2d

Task

: System.out.print (' \u4e2d ' + ":");
System.out.println (4*math.pow (16,3) +14*math.pow (16, 2) +2*16+13);
System.out.println ((char) 20013+ ":" +20013);
System.out.println ("Me and you are not in line");

System.out.println ("T here I am");
System.out.println ("System.out.println" ("double quotes are also shown);");

Boolean:only given True and false

Define Boolean:boolean Ispass

EXAMPLE:65 Pass the test

Boolean ispass;
Ispass=true;
SYSTEM.OUT.PRINTLN ("Pass the test:" +ispass);
Ispass=false;
System.out.println ("Fall The Test:" +ispass);
ispass=65>=60;
System.out.println (65+ "qualified" + Ispass);
Export:pass the Test:true
Fall The Test:false
Qualified true



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.