Search:

Type: Posts; User: Alex L

Search: Search took 0.09 seconds.

  1. Replies
    5
    Views
    1,205

    Re: Array with null (same for Arraylist)

    You're quite right. My solution was poor. I've re-read some principles and am starting again. Thanks for you help :)
  2. Replies
    5
    Views
    1,205

    Re: Array with null (same for Arraylist)

    Changed


    private String student;

    to


    private String student = "";
  3. Replies
    5
    Views
    1,205

    (Solved) Array with null (same for Arraylist)

    I'm having a problem with calling arrays from a class. I know I should should separate the user interface from the logic so that's what I've tried to do. If you know of a better way please mention...
  4. Replies
    7
    Views
    2,694

    Re: How to learn OOP

    Plus this thread was written a few months ago. The OP (me) has already found the solution ;)
  5. Replies
    4
    Views
    3,847

    Re: Sphere (Volume/Surface Area)

    Thank you, that works a treat :)
  6. Replies
    4
    Views
    3,847

    Re: Sphere (Volume/Surface Area)

    Thank you for pointing that out. I didn't notice it. By changing part of the code to this:


    private double volume() {
    volume = 1.33333333 * Math.PI * Math.pow(radius(), 3);
    return volume;
    ...
  7. Replies
    4
    Views
    3,847

    Sphere (Volume/Surface Area)

    A question (not homework, a question from a book, don't worry) asks me to create a program to work out the volume and surface area of a sphere.

    The surface area part works fine, it is the volume...
  8. Replies
    7
    Views
    2,694

    Re: How to learn OOP

    Thank you for your replies, I have started to go through the links and will give it another go. I'll keep you updated.
  9. Replies
    7
    Views
    2,694

    How to learn OOP

    Hi, I've left this a bit late really bit I go back to uni in 2 weeks. I got through the first year without really understanding OOP and just avoided the questions. I'm sure I will be stuck next year...
Results 1 to 9 of 9