Search:

Type: Posts; User: rohan22

Search: Search took 0.09 seconds.

  1. Replies
    12
    Views
    1,518

    [SOLVED] Re: related to static! need help

    Cool............ thanks.....
  2. Replies
    12
    Views
    1,518

    [SOLVED] Re: related to static! need help

    Yes i got to know that m is int and not static int in netbeans debugger when i review the contents of m.


    But my question was can static methods have non static variables also.And yes i can...
  3. Replies
    12
    Views
    1,518

    [SOLVED] Re: related to static! need help

    Yes I have tried and its working Fine.Try the below code:



    class D {
    int k;

    void fill(int g) {
    k = g;
    System.out.println("k is " + k);
  4. Replies
    12
    Views
    1,518

    [SOLVED] Re: related to static! need help

    I think i am very close to solving it.Just tell me one thing.Now(below i have written a short code about
    the scenario) suppose if i have a static method X(). And in that if i declare a variable...
  5. Replies
    12
    Views
    1,518

    [SOLVED] Re: related to static! need help

    Hey....For my first program, to access Stack3 class i have created an object called stackcopy and accessing an nonstatic method push(int ele) from main() of Doubt1 class.And in my second program...
  6. Replies
    12
    Views
    1,518

    [SOLVED] related to static! need help

    Hello,
    Below is my code for Stack implementation.



    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */
    package doubt1;
Results 1 to 6 of 6