Search:

Type: Posts; User: Robertgif

Search: Search took 0.25 seconds.

  1. Replies
    7
    Views
    877

    Re: netbeans crazy scrolling behaviour

    When you start typing in the middle of your screen is it on a new line of code right underneath or above? Or is it in the same line of code that you have to scroll over and see?
  2. Replies
    7
    Views
    877

    Re: netbeans crazy scrolling behaviour

    Can you try and describe you're problem with a few more details?
  3. Replies
    7
    Views
    877

    Re: netbeans crazy scrolling behaviour

    Hi,
    You're problem might be fixed with this: But I'm not sure what your describing.
    with NetBeans 7.0, this is the "Line Wrap" option.
    Go to "Options" / "Editor" / "Formatting", and set "Line...
  4. Re: What is the difference in declaring class variables?

    Hahahha, Thank you very much, that cleared things up quite a lot, and it also made clear to me how the Math class worked.

    Thanks so much!
  5. Replies
    3
    Views
    266

    Re: little questions

    class PrePostDemo {
    public static void main(String[] args){
    int i = 3;
    i++;
    System.out.println(i); // "4"
    ++i;
    System.out.println(i); ...
  6. What is the difference in declaring class variables?

    Hello and thank you for coming and reading my post. I had a question regarding class variables and constructors. I'll post some code so I can show what I mean:

    Case 1.)


    public class Shape {...
  7. Replies
    3
    Views
    477

    Re: Confused with homework

    What don't you understand about calling methods? Is there a specific issues you have with them, or a specific issue?
  8. Replies
    5
    Views
    357

    Re: Changing digits to words

    This is not too valid to your question, but think about moving this if() statement, you have it after you imput both the first and the second number, so the user is not sure which number they imputed...
  9. Replies
    8
    Views
    693

    Re: Beginners needing help

    This is really not important at all, but you write:

    table = 0.00 twice,

    once when you initialize the variable and once again when you are about to do your if statements.
  10. Re: Encapsulation (getters and setters) Tips?

    I can just go look this up if I have to but I might as well ask, what is Javadoc?

    Is there a general rule of thumb for tabbing?

    Thanks for the advice on the camel-case naming, i'll keep that in...
  11. Encapsulation (getters and setters) Tips?

    Hello all, as I continue coding, I have gone back over some code that I wanted to encapsulate. I made all my instance variables private and made a lot of new public methods that would be used to set...
  12. Replies
    5
    Views
    313

    Re: Simple question about a small program

    If it helps, look at each possible answer and backtrack it through the code. Working backwards might help you from getting confused.
  13. Replies
    12
    Views
    241

    [SOLVED] Re: New programmer, basic error help!

    While i'm still learning I have just been using the command prompt to run everything, help me understand how the coding really works, but thanks!
  14. Replies
    12
    Views
    241

    [SOLVED] Re: New programmer, basic error help!

    Alright! Thanks so much!

    I was getting rather frustrated so I went to go do some general reading on java and it kind of hit me like an epiphany. <:-P

    I was declaring my player objects inside of...
  15. Replies
    12
    Views
    241

    [SOLVED] Re: New programmer, basic error help!

    Alright, thanks for the suggestions.

    So this was my original code:

    public void startFight() {
    while (fighter1.health > 0 & fighter2.health > 0) {
    fighter1.attack();
    fighter2.attack();...
  16. Replies
    12
    Views
    241

    [SOLVED] Re: New programmer, basic error help!

    Thank you Norm, but I've read this when I was researching the problem before I made the original post and I can't figure out what is wrong with the line of code or why it has a null value.

    The...
  17. Replies
    12
    Views
    241

    [SOLVED] Re: New programmer, basic error help!

    Okay sorry, Ill post the other two classes that are involved in the program:

    Here is the player class which I don't believe has an error in it:

    public class player{
    int health;
    char sex;...
  18. Replies
    3
    Views
    220

    Re: I dont know what to call this tittle.

    Well... I don't know if this would be of much use to you, but maybe you can change it to what you need??

    (your array) = (int) (Math.random() * 10)

    I'm very new so i'm not sure if you can change...
  19. Replies
    12
    Views
    241

    [SOLVED] New programmer, basic error help!

    Hello all! I JUST started coding java and I was just practicing and I came across an error:

    Exception in thread "main" java.lang.NullPointerException
    at...
Results 1 to 19 of 19