Search:

Type: Posts; User: shachee

Search: Search took 0.23 seconds.

  1. Replies
    8
    Views
    960

    Re: maintain value of integer

    na not that... il check the previous thng
  2. Replies
    8
    Views
    960

    Re: maintain value of integer

    ya i want that only.... thnx bt what will be the code for that
  3. Replies
    8
    Views
    960

    Re: maintain value of integer

    [QUOTE=Norm;98940]The variable i is local to the method: getPriority() and will always start with the value assigned in the method.

    Can you explain what you want that method to do? The way it is...
  4. Replies
    8
    Views
    960

    maintain value of integer

    public int getPriority(){
    int i=0;
    return i++;
    }

    this method is called in another file, i want incremented value of i and not 0 when everytime this function is called.
Results 1 to 4 of 4