i installed java ee sdk6
set path variable to the bin of jdk
i set up the deployment(Apache Tomcat) as well as development environment required for java-ee
i wrote a html file, a servlet and a...
Type: Posts; User: shreerangpande
i installed java ee sdk6
set path variable to the bin of jdk
i set up the deployment(Apache Tomcat) as well as development environment required for java-ee
i wrote a html file, a servlet and a...
[B]hey i tried ur question...here is the code i thought about:
Please don't do the OPs work for him. Help him to understand the problem and to find solutions. Don't spoonfeed full code.
Thanks for ur reply....with ur help, finally my code is working
Sir,
o1 is initialized in the go method above....also i have made o1 an instance variable so that it can be accesed from any other method.
i want to make a deep clone of o1 and name it o2....so i m...
[B]Thanks for ur reply:
i tried out what u suggested:
import java.util.*;
class DeepCopy1 implements Cloneable{
String par;
DeepCopy1 o1,o2;
public static void main(String a[])
{
...
Sorry for not defining clearly earlier......
in the line
o2.par=(String)o1.par.clone();
it is giving compiler error saying clone method has protected access in Object
But i have already...
i stumbled upon this problem....pls suggest some way
--- Update ---
i tried the following code ...but it is not working:
class DeepCopy implements Cloneable{
String par;
DeepCopy o1;