1. Applying text formatting on your post doesn't help you to get positive attention, so please do not use bold and italic formatting to make your post something special. Use it only to highlight important part in problem description not whole post
2. Use of code tags would be nice
3. Use of full English is expected
4. If you added System.out.println(output); you would see your combined string
peter_budo
Code tags enforcer
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
ur code will not compile .... remove last '+' from your last line
ie remove below line
---------------------------------------
output="s1 = " +s1+ "\ns2 = " +s2+ "\ns3" +s3+;
-------------------------------------------
with
output="s1 = " +s1+ "\ns2 = " +s2+ "\ns3" +s3;
vchandra
Junior Poster in Training
73 posts since Mar 2010
Reputation Points: 13
Solved Threads: 14