how to practice coding in java

Read about how to practice coding in java, The latest news, videos, and discussion topics about how to practice coding in java from alibabacloud.com

The Java Practice Certificate number composition rule is that the first 4 are to represent provinces and regions to prepare a procedure to determine whether a person is a Wuhan person and its gender through the ID number.

17th digit represents the gender (odd for men). Write a procedure that determines whether a person is a Wuhan person and its gender through the ID number. */String str= "420103199801010312"; if(str.substring (0, 4). Equals ("4201") {System.out.println ("This man is from Wuhan, Hubei province. "); }Else{System.out.println ("This man is not from Wuhan, Hubei. "); } intSex=17; if(Str.charat (sex-1)%2==1) {System.out.println ("This man is male. "); }Else{System.out.println ("

Java Practice---14

=date;Wuyi } the PublicY (String name,string class,string date) { - This. Name =name; Wu This. Class =Class; - This. Date =date; About } $ PublicY () { - Super(); - } - A @Override + PublicString toString () { the return"Student [name=" + name + "]"; - } $ Public AbstractString speak (); the the } the Importjava.sql.Date; the@SuppressWarnings ("Unused") - Public classHextendsy{ in PrivateString matter; the PublicH (String name,string class,string date,stri

Java-preliminary Understanding-Common Object API (Collection framework-linkedlist Collection-Practice stack and queue)

-defined tool class, the previous example can be used in a different way.The late 1.6 release also provides a number of new methods in the Linklist linked list structure. As shown in.The functions of these methods and the existing methods are the same, but there are some differences, the upgrade is for a reason.The difference needs to know which method is clearly used when developing.GetFirst method has a feature, if there is nothing in the list, call the method, there is no thing. It throws an

JAVA Connection MongoDB Practice (1) __java

Due to business needs, the company recently transferred part of the data to the MongoDB database. After deploying the MongoDB database with the corporate DBA, we started our Java Connection MongoDB practice Before you start, recommend two IDE tools to connect to your database 1.rockmongo-on-windows-v0.0.2 (only run successfully in Firefox browser) 2. Robomongo (in 32 machine XP system will not start) Mong

Total Pages: 15 1 .... 11 12 13 14 15 Go to: Go

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.