|
|
#25 | |
|
FOOL!
Join Date: Dec 2005
Location: Miami, Florida
Posts: 3,754
|
So I'd need to create two strings, one that holds the toString for a specific object and assign the other string variable to the first string? Wouldn't the string get replaced after every loop or would it hold all of them?
Then use the joptionpane outside of the loop, right? Something like: Quote:
__________________
Intel Q6600 QUAD|| Gigabyte P35-DS3L ||XFX 7900GTX|| G.Skill 6GB PC2-6400 || OCZ Agility 60GB SSD || WD 320GB + WD Green 1TB HDD || Samsung 20" LCD || CoolMax 650W PSU || 60gb PS3 Owner PSNid: Marvel_us |
|
|
|
|
|
|
#26 | |
|
Registered User
Join Date: Jul 2005
Posts: 434
|
Declare the string in a place it won't get overwritten every loop iteration.
|
|
|
|
|
|
|
#27 | |
|
FOOL!
Join Date: Dec 2005
Location: Miami, Florida
Posts: 3,754
|
Got ya, I would only need it to be local to that method right? I don't see a need to have it declared as an instance variable for that class. So this is what I have:
Quote:
__________________
Intel Q6600 QUAD|| Gigabyte P35-DS3L ||XFX 7900GTX|| G.Skill 6GB PC2-6400 || OCZ Agility 60GB SSD || WD 320GB + WD Green 1TB HDD || Samsung 20" LCD || CoolMax 650W PSU || 60gb PS3 Owner PSNid: Marvel_us |
|
|
|
|
|
|
#28 | |
|
FOOL!
Join Date: Dec 2005
Location: Miami, Florida
Posts: 3,754
|
Actually now that I try it, it won't work locally it should be an instance variable.
__________________
Intel Q6600 QUAD|| Gigabyte P35-DS3L ||XFX 7900GTX|| G.Skill 6GB PC2-6400 || OCZ Agility 60GB SSD || WD 320GB + WD Green 1TB HDD || Samsung 20" LCD || CoolMax 650W PSU || 60gb PS3 Owner PSNid: Marvel_us |
|
|
|
|
|
|
#29 |
|
FOOL!
Join Date: Dec 2005
Location: Miami, Florida
Posts: 3,754
|
Gah, it still isn't working. It's displaying information multiple times, there is something wrong with the r += s ; line but I still haven't figured out how to get around that.
__________________
Intel Q6600 QUAD|| Gigabyte P35-DS3L ||XFX 7900GTX|| G.Skill 6GB PC2-6400 || OCZ Agility 60GB SSD || WD 320GB + WD Green 1TB HDD || Samsung 20" LCD || CoolMax 650W PSU || 60gb PS3 Owner PSNid: Marvel_us |
|
|
|
|
|
#30 | |
|
Registered User
Join Date: Jul 2005
Posts: 434
|
Might need a separator between the lines....or actually make them multiple lines.
|
|
|
|
|
|
|
#31 | |
|
FOOL!
Join Date: Dec 2005
Location: Miami, Florida
Posts: 3,754
|
Quote:
__________________
Intel Q6600 QUAD|| Gigabyte P35-DS3L ||XFX 7900GTX|| G.Skill 6GB PC2-6400 || OCZ Agility 60GB SSD || WD 320GB + WD Green 1TB HDD || Samsung 20" LCD || CoolMax 650W PSU || 60gb PS3 Owner PSNid: Marvel_us |
|
|
|
|
|
|
#32 |
|
Registered User
Join Date: Sep 2004
Posts: 97
|
can you post your output?
__________________
Athlon XP-M 2600+@(200x11.5) | Abit AN7 | 2x512 Corsair XMS PC-3200 | BFG 6800 GT OC (400/1100) w/ NV Silencer 5 | Promise Ultra133TX2 | WD Caviar SE 80GB 8 MB | Seagate Barracuda 7200.7 160GB | Maxtor DiamondMax 10 300GB | Sony 16x DVD-ROM | NEC 3520A | Antec SmartPower 2.0 500w | Koolance PC-601 | Samsung SyncMaster 997DF |
|
|
|
|
|
#33 | ||
|
FOOL!
Join Date: Dec 2005
Location: Miami, Florida
Posts: 3,754
|
Quote:
Quote:
__________________
Intel Q6600 QUAD|| Gigabyte P35-DS3L ||XFX 7900GTX|| G.Skill 6GB PC2-6400 || OCZ Agility 60GB SSD || WD 320GB + WD Green 1TB HDD || Samsung 20" LCD || CoolMax 650W PSU || 60gb PS3 Owner PSNid: Marvel_us |
||
|
|
|
|
|
#34 | |
|
Registered User
Join Date: Jul 2005
Posts: 434
|
Quote:
About the null- you never initialized your "r" variable. Think about what r += s; is really doing, especially the first time through. |
|
|
|
|
|
|
#35 | |
|
FOOL!
Join Date: Dec 2005
Location: Miami, Florida
Posts: 3,754
|
Quote:
__________________
Intel Q6600 QUAD|| Gigabyte P35-DS3L ||XFX 7900GTX|| G.Skill 6GB PC2-6400 || OCZ Agility 60GB SSD || WD 320GB + WD Green 1TB HDD || Samsung 20" LCD || CoolMax 650W PSU || 60gb PS3 Owner PSNid: Marvel_us |
|
|
|
|
|
|
#36 |
|
FOOL!
Join Date: Dec 2005
Location: Miami, Florida
Posts: 3,754
|
Program complete! Thanks to all for the responses.
Especially Cinema4DXL.
__________________
Intel Q6600 QUAD|| Gigabyte P35-DS3L ||XFX 7900GTX|| G.Skill 6GB PC2-6400 || OCZ Agility 60GB SSD || WD 320GB + WD Green 1TB HDD || Samsung 20" LCD || CoolMax 650W PSU || 60gb PS3 Owner PSNid: Marvel_us |
|
|
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Diablo 3 hotfix removes monster damage boost in co-op, Inferno teams breathe sigh of | News | Latest Tech And Game Headlines | 0 | 06-11-12 01:20 PM |
| Google (partially) loses suit to Oracle over use of Java API's | ViN86 | Mobile Devices And Smartphones | 3 | 05-17-12 10:25 AM |
| Judge Declines To Rule That Google Pillaged Java | News | Latest Tech And Game Headlines | 0 | 05-10-12 07:00 AM |
| BAH! I'm being driven insane by Java Virtual Machine | Kruno | General Software | 9 | 09-01-02 09:59 PM |