Results 1 to 6 of 6
Thread: what the outPut
- 12-24-2008, 11:56 AM #1
Member
- Join Date
- Dec 2008
- Posts
- 2
- Rep Power
- 0
- 12-24-2008, 02:35 PM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 8
Describe "doesn't work", as I can guarantee that it produces exactly what you've told it to produce.
P.S. You probably meant "test.text".
- 12-24-2008, 04:04 PM #3
A couple of things...
First, remove the "void" from your constructor. As far as I know, constructors never return anything (FYI... it wouldn't compile for me with that void there).
Second, as masijade mentioned, use test.text in your println statement.
Luck,
CJSLChris S.
Difficult? This is Mission Impossible, not Mission Difficult. Difficult should be easy.
- 12-24-2008, 05:04 PM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Yes, the following is wrong with instantiate.
Java Code:public void Test(String s) {
- 12-25-2008, 05:06 AM #5
Member
- Join Date
- Dec 2008
- Posts
- 2
- Rep Power
- 0
thank u for all, i knew where is the problem
- 12-25-2008, 01:44 PM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Nice, if you have solve the problem please mark it as solved.
Similar Threads
-
different output
By pro85 in forum Java AppletsReplies: 6Last Post: 08-05-2008, 01:42 PM -
What will be output and why
By huma in forum Threads and SynchronizationReplies: 4Last Post: 06-26-2008, 10:14 PM -
Why the output is always zero
By mehrotra.chitij in forum New To JavaReplies: 12Last Post: 04-25-2008, 04:05 AM -
output
By Camden in forum New To JavaReplies: 3Last Post: 12-01-2007, 10:34 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks