saxena neera

Greenhorn
+ Follow
since Apr 21, 2012
Merit badge: grant badges
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 saxena neera

prasad chowdary wrote:hi experts,

how to reverse a string without using built in methods.

eg)"john is a boy" and print "yob a si nhoj".



Thanks in advance, please send me the code its useful to me.



Here is the solution..

[Moderator action: Solution removed. Saxena Neera, please LetThemDoTheirOwnHomework(⇐click) and DontBeACodeMill.(⇐click)]
10 years ago
Hi Folks ,

I was going through Object pool design pattern...

Implementation involves the following objects:
Reusable - Wraps the limited resource, will be shared by several clients for a limited amount of time.
Client - uses an instance of type Reusable.
ReusablePool - manage the reusable objects for use by Clients, creating and managing a pool of objects.

When a client asks for a Reusable object, the pool performs the following actions:
- Search for an available Reusable object and if it was found it will be returned to the client.
- If no Reusable object was found then it tries to create a new one. If this actions succeds the new Reusable object will be returned to the client.
- If the pool was unable to create a new Reusable, the pool will wait until a reusable object will be released

Please advise how this pattern would be implemented in java, through executor framework , please advise..!!
10 years ago
Hi Folks ,
I was developing the below code for factory design pattern..I was doing R&D on factory pattern I have developed the below code , please advise is it correct as per the functionality of the factory pattern..



But please suggest that what I was thinking that I can improve my code by




but for bringing this change how i would change my main java file please advise. since I have 20 java classes if added then I would not make the use of above style determining type , I wan the thing to be dynamic ,please advise what changes I need to do in my main java class
10 years ago
Hi Folks,

I was going through string class and specially with intern method , I have developed the below code..



Now please advise that in above code my understandings of intern() method of string class is right or not. please advise
10 years ago

Steve Luke wrote:

saxena neera wrote:Hi Folks,
I have developed a program to stop a thread below is the code..



Do you mean "I found this code on a forum?" If so, please point us to the forum post you found the code at.



No I have developed it
Hi Folks,
I have developed a program to stop a thread below is the code..



But what I grasp from the above code while debugging is that when I start both the threads x and y, then I called x.setCompleted(); which will set the Boolean value Completed to true , and inside the run() method we are checking the method should not return true so for another thread y it is returning false so the second thread is executing..and the first thread is stopped..!please advise is my understanding is correct..!
i was developing the below code....




Both results in output float, float , what the reason behind that please advise and how can I call double please advise thanks a lot..!
10 years ago
i was developing the below code....



and the final outcome was int version , so does the ASCII value of character 'c' is being taken while passing it in to the method..!!
10 years ago
Hi Folks,

Please advise for any plugin that can be installed in eclipse indigo 3.7 through which we can generate the xml file from an xsd.
10 years ago