Results 1 to 8 of 8
- 11-26-2010, 10:43 PM #1
Member
- Join Date
- Oct 2010
- Posts
- 7
- Rep Power
- 0
-
A for loop could work well for this. What have you tried so far?
- 11-26-2010, 11:06 PM #3
Member
- Join Date
- Oct 2010
- Posts
- 7
- Rep Power
- 0
Java Code:public class Strings{ public static void main(String args[]){ double i = 0; int j = 1; while (i<4000000) { System.out.print(j); j++; } } }
-
- 11-26-2010, 11:10 PM #5
Member
- Join Date
- Oct 2010
- Posts
- 7
- Rep Power
- 0
I don't want the loop to end. I just want it to count so it will say "1" then the 1 will be replaced by a "2" which will be replaced by a "3".
-
Let's still try to clarify this. Are you saying that you want the console to display a 1, then the 1 disappears and is replaced by a 2, which disappears and is replaced by a 3? If this is the case, then forget it as consoles aren't built for this type of display and you'll be better off creating a Swing GUI to display your number.
- 11-26-2010, 11:18 PM #7
Member
- Join Date
- Oct 2010
- Posts
- 7
- Rep Power
- 0
Alright, thats all i needed to know. Just wanted to know if it was possible to do that in a console.
-
Similar Threads
-
How to replace int with asterisk
By erin.ctm in forum New To JavaReplies: 3Last Post: 11-13-2010, 12:13 AM -
convert unsigned integer to signed integer in java?
By diskhub in forum New To JavaReplies: 6Last Post: 05-17-2010, 01:50 AM -
is there anyway to replace java.IO
By nobody58 in forum Advanced JavaReplies: 1Last Post: 03-19-2010, 02:19 PM -
Using a replace method...
By paul in forum New To JavaReplies: 2Last Post: 08-07-2007, 05:50 AM
Bookmarks