Results 1 to 6 of 6
- 08-11-2010, 05:35 AM #1
Member
- Join Date
- Jun 2010
- Posts
- 29
- Rep Power
- 0
- 08-11-2010, 06:07 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
- 08-11-2010, 06:28 AM #3
Member
- Join Date
- Jun 2010
- Posts
- 29
- Rep Power
- 0
<b>
<a>i</a>
</b>
for every push method I need to change new line (I just push elements in tags, pop off it is same to peek elements). Any idea for getting following results like:
b
" "a-i
- 08-11-2010, 06:41 AM #4
First I don't understand ur problem? Can u be more clear.
Now to ur 1st post,
use : System.out.print();
to get output in same line.
-regards
- 08-11-2010, 07:13 AM #5
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,427
- Blog Entries
- 7
- Rep Power
- 17
- 08-11-2010, 07:14 AM #6
Prajin is correct in using print() for this purpose:
However, if you are asking about changing an already printed line, you cannot do this. You must determine the string you want printed before printing it.Java Code:This code: System.out.print("hi, "); System.out.print("how "); System.out.println("are"); System.out.print("you"); System.out.print("?\n"); System.out.print("Good, thanks!"); Produces: hi, how are you? Good, thanks!
Similar Threads
-
tracing java application line by line using netbeans
By chandrasekhar123 in forum NetBeansReplies: 1Last Post: 08-03-2010, 02:46 PM -
Formatting java command line output - Multi line string
By dricco in forum New To JavaReplies: 2Last Post: 07-02-2010, 02:20 PM -
Need to read an .ini and .abook file line by line (both files contain texts)
By ollyworks in forum Java AppletsReplies: 4Last Post: 09-10-2009, 10:18 AM -
Next and Previous Buttons
By kbgriggs in forum New To JavaReplies: 2Last Post: 08-12-2009, 02:08 PM -
Reading in a line of data and splitting the line up into variables
By guru32 in forum New To JavaReplies: 9Last Post: 04-07-2009, 03:51 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks