I don't know how many people now use jcreator when I study J2SE, it seems that there is not much, I have confident that I am confident, just start JBUILER, Eclipse. When I learned J2SE, I usually write some small procedures, killing chicken, using slaughter knives? Only those heavyweight tools are only used when J2EE. The performance of the computer itself is not very good, it should be a reason --_- !!!
Today, when using JCREATOR to generate code, it is eliminated the generation of the annotation. It does not dare to compliment it in the annotation of the annotation. Today, use it to generate the toString () method. Actually, this look, gave me a feeling of light.
Public string toString () {
String Sep = System.getProperty ("Line.seParetor");
StringBuffer buffer = new stringbuffer ();
Buffer.Append (SEP);
Buffer.Append ("i =");
Buffer.Append (i);
Buffer.Append (SEP);
Buffer.Append ("s =");
Buffer.Append (s);
Buffer.Append (SEP);
Return buffer.toString ();
}
In fact, I want to use JCREATOR to generate a code today, this toString () method is really fresh.
I know from some of the books that I have seen. When I do a string connection, I am very wasteful with "String" and " ", and I can even say that it is very wasteful, but I write toString every time I write. It is still used to do it. The reason is that every time " ", the previous String object is gone, the original reference has point to another object. (It seems like this).
I saw this method it generated, it seems to change some of my styles.