AGivant

Greenhorn
+ Follow
since Jun 28, 2001
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by AGivant

Hi, Paul!
What is an answer to this question. could you please remember. We need it not for exam, it's real life situation and our customers waiting for response.
Thank you in advance,
Alex Givant.
Hi, All.
Our customers ask if the API that we wrote on Java is certified complaince with J2EE. For our development we're using J2SE, so the question is : What we need to do to prove that the API is complaince with J2EE?
Thank you in advance.
Alex Givant.
Hi!
I like this definition of recursion:
"To define recursion you should define recursion." :-)
Have a nice day.
22 years ago
You don't create 2 instance, you just declared i as static. In
this case it doesn't matter how many instance you'll create. Change i from static to non-static and you'll see same result which means we've created only one instance of the class.
Have a nice day.
22 years ago
Hi.
You can go this way: there is a constructor for StringTokenizer that accept 3 parameters and third one says include or exclude delimiter from calculation. So you create StringTokenizer first with 3 parameter constructor, call to countTokens() to receive general number of tokens (inlcudes delimiters), than you create StringTokenizer again but with 2 parameters constructor (this way delimiters are not calculated in countTokens() function call.
After that you just make countToken1 - countToken2 and you have number of delimiter in your string.
Hope it helps.
Alex.
22 years ago