Search:

Type: Posts; User: MryJaho

Search: Search took 0.62 seconds.

  1. Replies
    5
    Views
    461

    Re: Operate on list`s objects

    It`s just an example..I mean what can i do with list`s objects except printing..!?
  2. Replies
    5
    Views
    461

    Re: Operate on list`s objects

    yeah ..there`s no problem for printing..but..for example imagin that list[i] is belong to class Class1


    class Class1 {
    private int a;
    }

    can I use list[i].a ?
    or just can print list[i] ...?
  3. Replies
    5
    Views
    461

    Operate on list`s objects

    Dear Friends...Hello..!
    Look at this example..:


    import java.util.ArrayList;
    ArrayList<Object> list = new ArrayList<Object>();
    list.add(10); // boxing converts to instance of Integer...
  4. Re: Exception in thread "main" java.lang.NullPointerException

    at first i have a main problem..i dont which IDE u use..i use Netbeans 6.5 ..
    at first that i start a new project i have a main class..then define some other classes in that source package..
    now...
  5. Re: Exception in thread "main" java.lang.NullPointerException

    tnx for answering..
    but..i dont know what`s the diffrent?
    if u mean so:


    public void setHeadNodesData()
    {
    List tempList = new List[vertices];
    for ( int i = 0; i < vertices; i++ )
    ...
  6. Exception in thread "main" java.lang.NullPointerException

    Exception in thread "main" java.lang.NullPointerException
    at testapp.Graph.setHeadNodesData(Graph.java:44)
    at testapp.Main.main(Main.java:19)

    Dear myFriends..Hi..!
    i dono know...
Results 1 to 6 of 6