Search:

Type: Posts; User: jack_nutt

Search: Search took 0.07 seconds.

  1. Replies
    12
    Views
    2,463

    Re: calling objects in a differnt class

    putting
    public class node {
    int x;

    public static di[] obj=new di[1];

    obj[0]=new di(22); ---------------------> from here


    public node(int p)
  2. Replies
    12
    Views
    2,463

    Re: calling objects in a differnt class

    Exception in thread "main" java.lang.Error: Unresolved compilation problems:
    Syntax error on token ";", { expected after this token
    Syntax error, insert "}" to complete MethodBody
    Syntax error...
  3. Replies
    12
    Views
    2,463

    Re: calling objects in a differnt class

    Norm ,
    thanks


    I have one issue
    i have three classes

    public class dd {
    public static void main(String[] args) {
    // TODO Auto-generated method stub
  4. Replies
    12
    Views
    2,463

    Re: calling objects in a differnt class

    i have object reference

    ClassA[] obj=new classA[10]; in Class B


    can i use 'obj[0]' in classC
  5. Replies
    12
    Views
    2,463

    Re: calling objects in a differnt class

    how do we refernce objects??
  6. Replies
    12
    Views
    2,463

    calling objects in a differnt class

    Hey evyone,

    I have three classes

    I made objects out of classA in Class B...
    For some refernce can i use those objects in class C...

    Thanks
Results 1 to 6 of 6