工作学习 / IT杂谈 / Are the following 4 pieces of code equivalent to each other?1) for(int i=0; i<10; i++) {
System.out.println("i =" +i);
}
2) for(int i=0; i<10; ++i) {
System.out.println("i =" +i);
}
3) for(int i=0; i<10; ) {
System.out.println("i =" +i);
i++;
}
4) for(int i=0; i<10; ) {
System.out.println("i =" +i);
++i;
}
The question is: Are the above 4 pieces of code equivalent to each other? Can anybody tell me why? Thank you so much.
-jabber(jabber);
2000-9-26{408}(#9387@0)
Are these things really so important?
Architecture is more important for Java.
-peterlf(fromZtoA);
2000-9-26(#9391@0)
Few Chinese guys can play a role of architectThey are not so important. However, a similar question exists in the Sun's testing problem bank.
For us chinese guys, we need strong coding ability. For those who just begin, some small tricks are as importanbt as architecture.
-guest:WoodHead;
2000-9-26{238}(#9394@0)
Canada needs more programmer than architectsPeter, thank you for your comments. A cruel fact is that most of us Chinese guys can only make our living by coding. So I posted some small tricks for people who are new in Java.
In the real life, I think coding is essential to us. One of my friend's wife just lost her job because her poor coding ability jeopardized the whole project.
We would be greatly appreciated if you could post something about architecture. Thank you in advance. --Jabber
-jabber(jabber);
2000-9-26{454}(#9396@0)
FromZtoA, I donot know how to setup apache and tomcat in nt or w2k,
but it is very easy to setup apache and tomcat in Linux.
If you need some informations about that,I will email to you.
-fly_eagle(fly_eagle);
2000-9-27(#9435@0)
Also, NT version is available.
-fly_eagle(fly_eagle);
2000-9-27(#9436@0)
I am new to JavaI am new to java and is now reading the book
ThinkInJava. But I find out that I did not make biggest use of it. Can you give some suggestions on how to get an overview of the whole architecture as soon as possible?
-lsc(Kantata);
2000-9-27{215}(#9478@0)
NO architecture stuff in <<Thinking in Java>><<Thinking in Java>> just discusses Java language.
If you want to learn Java architecture,
download J2ee bluebook from sun's site.
-jabber(jabber);
2000-9-27{134}(#9496@0)
And why do you want to move to canada from U$A?
-peterlf(fromZtoA);
2000-9-26(#9431@0)
This is my choice of lifeI have no patience to wait for a USA green card. Now I think my life will be more meaningful once I settle down in Toronto.
I will set up my own Java training center
to help new immigrants (Of course, I will make money.) I am a very good Java instructor but I cannot set up my own business in USA because I don't have a green card. Definitlely, I will make less moeny in Canada than in USA.
-jabber(jabber);
2000-9-27{395}(#9473@0)