Results 1 to 3 of 3

Thread: Latest version of ClearCase

  1. #1
    Junior Member
    Join Date
    Mar 2008
    Answers
    2

    Latest version of ClearCase

    What is the latest version of ClearCase for file version control.

    thank you guys


  2. #2
    Junior Member
    Join Date
    Mar 2008
    Answers
    2

    Re: Latest version of ClearCase

    no comments

    Last edited by shyambaishya; 03-12-2008 at 05:16 AM.

  3. #3
    Junior Member
    Join Date
    Mar 2008
    Answers
    2

    How to create muliple instance of a SingleTone class?

    How to create muliple instance of a SingleTone class?I want to create three instance of a SingleTone class.My code is like this:



    class SingleTone{
    private static final SingleTone[] obj = new SingleTone[3];

    private SingleTone(){

    }

    public static SingleTone[] getInstance(){
    for (int i = 0 ; i<3 ;i++){
    obj[i] = new SingleTone();

    }
    return obj ;
    }

    void method(){
    System.out.println("This is a SingleTone class's method");
    }
    }
    public class MySingleTone {

    /**
    * @param args
    */
    public static void main(String[] args) {
    // TODO Auto-generated method stub
    for (int i = 0 ; i<3 ;i++){
    SingleTone[] o = SingleTone.getInstance();
    System.out.println("Object o:" + o[i]);
    }


    SingleTone[] o = SingleTone.getInstance();
    System.out.println("Object o:-->" + o[0]);
    }

    }


    Problem is : when I prints:
    //last line
    System.out.println("Object o:-->" + o[0]);

    Its shows other object reference,How can I make it same.[/QUOTE]

    Last edited by shyambaishya; 03-12-2008 at 05:17 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact