Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt about the program???

 
jayalakshmi charugundla
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The following program giving the output as
xx
Xx
x
BUILD SUCCESSFUL (total time: 1 second)

The actual output is like,
Xx
Xx
x
Here we are adding only Xx element to the list but how it will come two Xx, Xx elements. Is there any printing mistake or any other reason?

 
Ankur kothari
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the output am getting is
xx
Xx
[space]x

ofcourse a printing mistake


 
Ankit Garg
Sheriff
Posts: 9521
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I posted this question some time ago here and indeed its an error in the master exam...
 
jayalakshmi charugundla
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yeah, I ran the program once again now it's showing what you said here. But why before it was showing differently?

Ankit I have seen the link .

thanks for your immediate respponse.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic