Click here to Skip to main content
15,886,258 members
Home / Discussions / Java
   

Java

 
QuestionSOLID principle problem Pin
Neo1010121-Aug-12 7:36
Neo1010121-Aug-12 7:36 
AnswerRe: SOLID principle problem Pin
Nagy Vilmos21-Aug-12 7:57
professionalNagy Vilmos21-Aug-12 7:57 
QuestionObject parsing non-static Pin
Joshua Waring20-Aug-12 23:11
Joshua Waring20-Aug-12 23:11 
AnswerRe: Object parsing non-static Pin
Nagy Vilmos21-Aug-12 6:48
professionalNagy Vilmos21-Aug-12 6:48 
AnswerRe: Object parsing non-static Pin
jschell21-Aug-12 8:40
jschell21-Aug-12 8:40 
QuestionIs it a bug or featuere Pin
Amarap18-Aug-12 0:58
Amarap18-Aug-12 0:58 
AnswerRe: Is it a bug of featuer Pin
Manfred Rudolf Bihy18-Aug-12 2:11
professionalManfred Rudolf Bihy18-Aug-12 2:11 
AnswerRe: Is it a bug of featuer Pin
Gerben Jongerius18-Aug-12 2:12
Gerben Jongerius18-Aug-12 2:12 
The reason you are not getting 'Run 3' is because Java is thinking about string concatination. As it is processing from left to right you would see:

"Run 2" + 1 + ""

But this is where it gets a bit strange, I would expect to see the number 1 printed next giving you:

"Run 21"

If you want to add two numbers you must use brackets to indicate priority:

System.out.print("Run "+ (i+1));
AnswerRe: Is it a bug of featuer Pin
Eddy Vluggen18-Aug-12 2:28
professionalEddy Vluggen18-Aug-12 2:28 
AnswerRe: Is it a bug of featuer Pin
TorstenH.18-Aug-12 3:22
TorstenH.18-Aug-12 3:22 
AnswerRe: Is it a bug or featuere Pin
Gowtham Gutha15-Nov-12 7:25
Gowtham Gutha15-Nov-12 7:25 
Questionproblem while updating a file Pin
Namdeo Badhe17-Aug-12 7:07
Namdeo Badhe17-Aug-12 7:07 
Answerdouble post Pin
TorstenH.17-Aug-12 9:00
TorstenH.17-Aug-12 9:00 
Generalproblem while updating a text file in java Pin
Namdeo Badhe17-Aug-12 6:45
Namdeo Badhe17-Aug-12 6:45 
GeneralRe: problem while updating a text file in java Pin
Richard MacCutchan17-Aug-12 6:59
mveRichard MacCutchan17-Aug-12 6:59 
QuestionMessage Removed Pin
16-Aug-12 6:53
Member 936232116-Aug-12 6:53 
QuestionSwing Pin
Joshua Waring15-Aug-12 23:53
Joshua Waring15-Aug-12 23:53 
AnswerRe: Swing Pin
pasztorpisti16-Aug-12 0:28
pasztorpisti16-Aug-12 0:28 
GeneralRe: Swing Pin
Joshua Waring16-Aug-12 0:45
Joshua Waring16-Aug-12 0:45 
AnswerRe: Swing Pin
pasztorpisti16-Aug-12 0:55
pasztorpisti16-Aug-12 0:55 
GeneralRe: Swing Pin
Joshua Waring16-Aug-12 1:22
Joshua Waring16-Aug-12 1:22 
GeneralRe: Swing Pin
pasztorpisti16-Aug-12 1:50
pasztorpisti16-Aug-12 1:50 
GeneralRe: Swing Pin
Joshua Waring16-Aug-12 2:02
Joshua Waring16-Aug-12 2:02 
GeneralRe: Swing Pin
pasztorpisti16-Aug-12 2:12
pasztorpisti16-Aug-12 2:12 
GeneralRe: Swing Pin
Joshua Waring16-Aug-12 3:57
Joshua Waring16-Aug-12 3:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.