Search:

Type: Posts; User: ashl7

Search: Search took 0.15 seconds.

  1. Replies
    10
    Views
    1,203

    Re: modifiers for variable

    intBet is the user's input...the program is part of a GUI made by netBeans GUI maker!!! so I wasn't sure I should put it all here!

    --- Update ---

    @Chris Brown
    I see what you mean
    I got my...
  2. Replies
    10
    Views
    1,203

    Re: modifiers for variable

    Hi again
    I know it's been a while, but wrote a piece of code, and can't find what my mistake is!
    it's about variables again



    public int result;
    private void...
  3. Replies
    10
    Views
    1,203

    Re: modifiers for variable

    Oooooh "the same class or package"...now I get it...and thanks for the link
  4. Replies
    10
    Views
    1,203

    Re: modifiers for variable

    Ok thanks a lot
    So you mean in general, we only use public, private, protected,etc... only when we want to make a class that is going to be used in some other program, or external codes?! in this...
  5. Replies
    10
    Views
    1,203

    modifiers for variable

    Hi,I needed to know why we should use modifiers for variables?
    I have this piece of code:



    import java.util.*;

    public class Test{

    public String student;
Results 1 to 5 of 5