. Net Code agricultural Android --- small point sorting, agricultural android ---

Source: Internet
Author: User

. Net Code agricultural Android --- small point sorting, agricultural android ---

Small point sorting

Although the two languages have the same programming idea and similar syntax, they are still somewhat awkward and may not be familiar with it. Some minor problems I have encountered are as follows:

String/Int Conversion

C #: String ---> Int

 String a="33";  Int b=(int)a; Int c=Int.Parse(a.ToString());

C #: Int ---> String

Int a=33;String b=a.ToString();

Java: String ---> Int

String a="33";Int b=Integer.parseInt(a.toString());

Java: Int ---> String

Int a=33;String b=String.value(a);

The integer in Android is different from the Integer in java.

Definition of Enum Enumeration

It is somewhat different from the enumeration in c #.

C #:

 public enum week        {            Monday=1,            Tuesday=2        }

Java:

 public enum week {        Monday(1), Tuesday(2);        private int code;        private week(int code) {            this.code = code;        }              @Override        public String toString() {            return String.valueOf(this.code);        }    }       week.Moday.toString();

It is a little more troublesome than c!

This is only so much for the time being. It is not necessary for others. the sorting of this small point will be updated later. You are also welcome to add it!

 


I am a computer cainiao, but I am very interested in computers. I want to be a software engineer in the future. I am now in college, majoring in agricultural science, OK?

I have heard of engineers for several months, and I know a few more. However, you need to remember that many things can be done without talking about them. In the past two years, almost everything has been inconclusive. I personally think that computer learning should start from the C language.
It is worth reminding you that your university is half ruined. That is to say, you have developed your inertia, which is hard to change. Contemporary historian Mingyue once said a sentence in his book "The things of the Ming Dynasty (the finale)" (I suggest you go and have a look), which is philosophical, A person's character is unique. We can only modify it on it, but it cannot be changed. It should be called a defect, and a weakness cannot be modified. Everyone has a weakness except a saint. You should know where your shortcomings are and where your weaknesses are. You can modify them and correct them. Otherwise, it will be very late!

It takes several months to learn net and java well. How many lessons will be required for training schools?

It usually takes about a year for training schools. It is best to find a training school to learn quickly and know where the focus is.

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.