Search:

Type: Posts; User: TheSlowLearner

Search: Search took 0.14 seconds.

  1. Replies
    5
    Views
    338

    [SOLVED] Re: Trouble With Doubles

    Ok, thanks for the help everyone. This one is solved now.
  2. Replies
    5
    Views
    338

    [SOLVED] Re: Trouble With Doubles

    I feel really stupid having to have a primitive type defined, but then what exactly is a double? I thought it was a number with a decimal point rounded to the second decimal place.

    Also, why does...
  3. Replies
    5
    Views
    338

    [SOLVED] Trouble With Doubles

    No rhyme intended.


    import java.util.Scanner;

    public class CalculatorProgram {
    public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
    double firstNumber,...
  4. Replies
    17
    Views
    1,124

    [SOLVED] Re: The 'new' Keyword

    Thanks to everyone who helped. This is now a solved question.
  5. Replies
    17
    Views
    1,124

    [SOLVED] Re: The 'new' Keyword

    Thanks. This helped me understand. :D
  6. Replies
    17
    Views
    1,124

    [SOLVED] Re: The 'new' Keyword

    public class ObjectInitialization {
    Object object1;
    static Object object2;

    public static void main(String[] args) {
    Object object3;
    }
    }
  7. Replies
    17
    Views
    1,124

    [SOLVED] Re: The 'new' Keyword

    Ok, I hope these are my last questions. I just want to be sure I understand fully.

    Why would you ever WANT an object to be set to null? Would you set an object to null if you wanted it to be...
  8. Replies
    17
    Views
    1,124

    [SOLVED] Re: The 'new' Keyword

    Just wondering, what does this mean exactly? Could you give an example? For some reason I just can't picture what you're saying.
  9. Replies
    17
    Views
    1,124

    [SOLVED] Re: The 'new' Keyword

    Thanks for all the answers everyone.
    So, just to be sure I understand: without initializing the object it has a 'null' value and any attempt to call methods on it will result in a 'null pointer...
  10. Replies
    17
    Views
    1,124

    [SOLVED] The 'new' Keyword

    Hi, this is my first time posting on this forum so I'm sorry if this isn't the right place for this topic. If it isn't the right place, please tell me where a better place might have been. Also, if...
Results 1 to 10 of 11