Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!

Kurt Zhu

Greenhorn
+ Follow
since Aug 25, 2011
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Kurt Zhu

Oh, I got it.

I should not have used JRadioButton, should rather JRadioButtonMenuItem。

Someone gave me this in baidu.

Thanks.
10 years ago
As for a common JMenuItem, it seems to be defaulted to collapse on select.

Now I added two jRadioButtons in a menu, when I click on one, the command finishes but the radio menu is still there seemingly requests another select.

I need to make it a collapse on select mode for user friendliness.

How can that be done? Thank you guys.
10 years ago
I thought we can use a long value as an identifier that a record is locked.

I was totally ignorant about lockcookie. I think I should at least know what lockcookie is not.

Thanks.

Conor Crowe wrote:Hello,

I am trying to read in from a text file and enter the data into an ArrayList.
When I tokenize the data read in from the file, there seems to be a whitespace read in which causes an array out of bounds exception when the if clause (tokens.length ==3) is not used.
You can see from the output that an array of size 1 is read at the end of file.
Could someone please explain why it does this?

Thank you




output:

Donnie Darko
sci-fi
Gyllenhall, Jake
3
Raiders of the Lost Ark
action
Ford, Harrison
3
2001
sci-fi
??
3
Caddy Shack
comedy
Murray, Bill
3
Star Wars
sci-fi
Ford, Harrison
3
Lost in Translation
comedy
Murray, Bill
3
Patriot Games
action
Ford, Harrison
3

1
[Donnie Darko sci-fi Gyllenhall, Jake
, Raiders of the Lost Ark action Ford, Harrison
, 2001 sci-fi ??
, Caddy Shack comedy Murray, Bill
, Star Wars sci-fi Ford, Harrison
, Lost in Translation comedy Murray, Bill
, Patriot Games action Ford, Harrison
]



Thank you for your sharing.
I think I don't have to go as deep for understanding the topic in the SCJP study guide.
What I need is how I can implement
[Donnie Darko sci-fi Gyllenhall, Jake
, Raiders of the Lost Ark action Ford, Harrison
, 2001 sci-fi ??
, Caddy Shack comedy Murray, Bill
, Star Wars sci-fi Ford, Harrison
, Lost in Translation comedy Murray, Bill
, Patriot Games action Ford, Harrison
]
I borrowed your code in below class, which worked well. Thank you.
very illuminating. Thank you for sharing.
I read some earlier topics but not a lot of them, which I think not meet the exercise's requirements well.
I had mine here. Can any one help check whether it meets the requirements and if so to what extent. Thank you.


I think we can just try to adjust ourselves to the way JVM works. We can use the results of the code as what we should adjust ourselves to.

Thanks to @Ankit Garg @James Tharakan @Stephan van Hulst and others.

I think we can just try to adjust ourselves to the way JVM works. We can use the results of the code as what we should adjust ourselves to.

Thanks to @Ankit Garg @James Tharakan and others.