Big Data <javase + Linux Elite Training class >_day_07

Source: Internet
Author: User
Tags uppercase letter

1: Basic grammar--ASCII encoded table        Computer World,01-> binary                How many countries are there in the world? What statement         does each country use? Computers are used all over the world.                United States: The computer can directly recognize the human character                letter a corresponds to the decimal 97, the uppercase letter a corresponds to the decimal is the                American guy: A-Z A-    z    0-9    [email protected ]#$%, such as                a in the hard disk storage is not a, is a corresponding to the value of 97 of the binary                commonly used ASCII encoding table: The                    number 0-9 corresponding ASCII encoding decimal 48-57 , the letter A-Z corresponds to 97-122, the letter A-Z corresponds to the 65-90.                        China: start to make its own code table                let decimal number, corresponding to a Chinese character                Simplified Chinese    Code   --GB corresponding Chinese characters less                                    upgrade to GBK                                            Universal code: International Standard ISO (all Languages compatible asctii encoding table)      Unicode
 Public classasciidemo{/*when Char is converted to an int type, the type is automatically promoted, and the char data type is queried for the encoded table, resulting in an integer*/     Public Static voidMain (string[] args) {Charc = ' a '; inti = C + 1;        System.out.println (i); //98                        intj = 90; //Forcing type conversions            CharH = (Char) J;  System.out.println (h); //ZSystem.out.println ((Char) 6); Chark = ' You ';                        System.out.println (k); //range of char types: 0-65535            Charn = 65534; }}
2:storage        of char type, base syntax, char        int
 Public classlooptest{ Public Static voidMain (string[] args) {/*output All English letters 1, lowercase 2, uppercase                                         52 using coded tables to achieve A-Z 65-90 A-Z 97--122                            Ideas: 1, define variables, save lowercase A, save capital a 2, loop 26 times, output defined variables Each cycle, variable + +*/            //define variables to hold letters            CharXiaoxie = ' a '; CharDaxie = ' A '; //Loops             for(inti = 0;i < 26;i++) {System.out.println (Xiaoxie+ "    " +Daxie); Daxie++; Xiaoxie++; }    }}
 Public classtest99{ Public Static voidMain (string[] args) {/*1 * 1 = 1 1 * 2 = 2 2 * 2 = 4 1 * 3 = 3 2 * 3 = 6 3 * 3 = 9*/         for(inti = 1;i <= 9;i++){             for(intj = 1;j <= i;j++){                //print in standard formatSystem.out.print (j + "*" + i + "=" + I * j + "\ T")
 3: The use of tools: Eclipse idea NetBeans Benefits: free, no copyright, with use. Open source (Eclipse source), downloadable plug-in (strong extensibility), Green software -> unzip to use  4:eclipse shortcut key: ATL  +/ auto complete Ctrl  +/ single-line comment cancel single-line comment Ctrl  + Shift +/ Multiline comment Ctrl  + shift + \ Cancel Multiline Comment Ctrl  + SHIFT +
   
     o Import Package selected line Alt  +
     up and down arrows move this line of code Ctrl 
     + D delete Current line Ctrl  + 1 viewing tips CTRL  + 2 R unified Rename Ctrl  + 2 L receive return value 
   
 package   Com.itstaredu.demo;  import   Java.util.Scanner;  public  class   HelloWorld { public  static  void   main (string[] args) {  // atl +/shortcut  System.out.println ("        HelloWorld ");        Scanner sr  = new   Scanner (system.in);  for  (int  i = 0; i < args.length; i++ ) {}}}  

Big Data <javase + Linux Elite Training class >_day_07

Related Article

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.