Learn the first article from. NET to Java

Source: Internet
Author: User
Tags tomcat server

I used to say that the company used what technology I learn what. But for Java, I once thought that "learning Java is impossible, this life can not learn java." "As a result, a company turned to Java, I had to run, and then, look back to n companies have made social security, even I am a little surprised, incredibly there are so many companies." For Java terrier, this is a historical reason, sophomore time the same big wave people go to Lanji to participate in Java training, when a hollow diamond how can not write, I write to write to is a solid brick, the results of training teacher really can't see down, said: "Alas!" You are not suitable for Java ", I saw the next together with a few students all of a sudden to write, make me once began to doubt their IQ. So, I ran to self-study C #, until many years later, I only understand the teacher's words are: "You are not suitable for software, and not just java." There is another reason not to go to Java, is to see me in Shenzhen to do Java college students, the company did not see more than I do. NET strong, overtime and too horrible, make me afraid. Probably because all is the college dog, is in the code, did not go to do the Java architect, all is the word, the Java and the net feeling difference is not very big, the high salary all is overtime to add out. In contrast,. NET wage low, work is also a lot easier, so little things, minutes to complete the development of tasks, it is necessary to install overtime?

After searching the online recruiting, architects seldom have. NET and PHP, most of them are Java systems, so if you want to be an architect, Java is what you have to face.

Now don't want to escape, Java Java bar, so, Java learning Path began.

When I was learning Java, I always liked to compare them, because C # was so elegant that in the process of learning Java grammar, there was inevitably a variety of spit slots. Java is a reference to the c++,c# is reference to C + + and Java, inherited the two of the syntax a bit, and then added their own unique many of the syntactic sugar.

we're not the same .

  What about the properties of the deal?

Where do I go? First Look at C #

     Public string Get Set ; }      Public int Get set; }

And look at the Java

     PublicString name;  Public intAge ;  PublicString GetName () {returnname; }     Public voidsetName (String name) { This. Name =name; }     Public intGetage () {returnAge ; }     Public voidSetage (intAge ) {         This. Age =Age ; }

Feeling suddenly returned to the c#2.0 era, the whole people all of a sudden through. The more wonderful is the string, the first letter must be uppercase, and the other basic type is the first letter lowercase. Then look at some Java built-in packages, import java.util.Scanner; What, why, some words are the first letter lowercase, the last face of the class becomes uppercase, this is the big hump or small hump it?

C # used: To represent inheritance, Java is a word: extends, this is good to understand, the keyword C # base corresponds to the Java supper. One thing that's strange is that Java packages and C # Namespaces are a little different, and Java packages also generate corresponding physical folders on disk.

I also habitual var _age=2, and this next error. God horse situation? int _i=new int (); Lhaviyani? Wrong again? To do this: Integer _i=new integer (4); now that I have int, why do you want an integer?

Java8 began to support lambda, a syntax feature that was supported by C # many years ago.

The words first stop ...

After familiar with the grammar, I went to familiar with Ide,java commonly used Ides are mainly: Eclipse.exe, MyEclipse CI, IntelliJ idea Community Edition 2018.1.4 x64.

So I don't care 3,721 download it and play it again. Eclipse Green version free installation, myeclipse to crack, IntelliJ idea temporarily still useless, not to say.

Now let's say with Eclipse and MyEclipse's feelings, from the name can see that they are the same vein, so use is similar. Just downloaded, I thought with the same as the same as a direct to the code, only to find that I was wrong again. Configuration, configuration, configuration. The important thing to say three times, various configurations, is estimated to be Java features bar. Various configuration I have done, found that the smart tip is a lump of mud. Well, it is said that there are shortcut keys, every time I press alt+/, I suddenly think, as long as the keyboard, the two keys are not grinding, it must be a Java programmer.

I have memorized these two IDE's various common shortcut keys, I do not know is my hand is small, the finger is short of reason or something, more operation several times on the finger cramp, a hand press not finish shortcut key, two hand press, always have a hand to move far, press Finish again reset, to me such 10 finger head knocks on the keyboard of person, really is a bit not adapt. There are these shortcuts often and various input method shortcut keys conflict, you have to kill the input method of some shortcut key configuration. Then I began to try the HTML, CSS and JS Smart hints, and tried the file reference, I took the mouse click to drag and drop, the direct card is not moved, just found not supported, ok I again hand knock, hand knock of the smart hint is too weak, Originally 0.1s can fix a file reference, I just knocked for several seconds, finally is a sigh of relief.

VS Many of the shortcut is a combination of shortcut keys, it is difficult to drink other software shortcut key conflicts, and tapping shortcut key fingers do not need to move, such as Ctrl+k,ctrl+s; Ctrl+k,ctrl+u;

I asked my classmates who made Java, how they did it, they said it was so, accustomed to the good, feel okay ah. I do not understand, the same function I use VS coding efficiency will be much higher AH, development efficiency is low, for developers, means overtime, no wonder with my Java classmates compared to my class, may not be 1% of their (I basically do not add a few times a year, most of the situation is on the punctual There is another important reason for the Java Internet company to chant more, now. NET in many Internet companies mainly to do chores, traditional enterprises have many old projects may be. NET), is it really useless compared to no harm? Maybe my use of VS is too good, not enough for Eclipse and MyEclipse.

MyEclipse How to set up automatic prompts

1, open MyEclipse, Window, perferences, Java , Editor, and Content Assist, in the bottom right column to find Auto-activ ation, here are three options to find the second "Auto activation triggers for Java:" option
2. In the text box that follows, you will see a "." Exist. This means: only enter "." Then there will be code hints and auto-completion, and the place we want to modify is here. Put the "." In the text box Replace it with "abcdefghijklmnopqrstuvwxyz." So you can write Java code in MyEclipse to press "ABCDEFGHIJKLMNOPQRSTUVWXYZ." Any one of the characters will have code hints

myEclipse2017 Adding a Tomcat server

75195918

Eclipse Run times wrong

The JDK is 32-bit and the IDE is 64-bit.

Automatic prompt for labeling of HTML5 on MyEclipse 2016

<= ABCDEFGHIJKLMNOPQRSTUVWXYZ

Restart MyEclipse When you are finished configuring

the Eclipse code automatically prompts for settings, how can I configure the code auto-prompt feature of eclipse?

The eclipse code automatically prompts for settings, how can I configure the code auto-prompt feature of eclipse?

Eclipse Common shortcut keys

ctrl+alt+h: See where the current class is inherited.

ctrl+shift+g: See where the current class is referenced.

MyEclipse Imitation vs Theme

As. NET programmer, I am really not accustomed to myeclipse above the various topics, so I made a similar theme with VS.

Theme Pack: https://download.csdn.net/download/zouyujie1127/10457891

Download the theme pack, and then open the MyEclipse import.

About MyEclipse 2017 text editor setting HTML code hints feature change theme colors

About MyEclipse 2017 text editor setting HTML code hints feature change theme colors

Servlet uses annotations to configure URL hint 404 error

Servlet uses annotations to configure URL hint 404 error

After being familiar with the grammar and IDE, the rest is the various libraries of the system itself, and the various frameworks in its ecosystem.

Learn the first article from. NET to Java

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.