Search:

Type: Posts; User: theoneyouenvy

Search: Search took 0.35 seconds.

  1. Replies
    7
    Views
    648

    Re: +calculateCharge():Void

    nope, im a complete java noob and am just looking to pass a class haha
  2. Replies
    7
    Views
    648

    Re: +calculateCharge():Void

    so it would be


    public double calculateCharge()
    {
    return 0;
    }

    ?
  3. Replies
    7
    Views
    648

    Re: +calculateCharge():Void

    I guess how to code it, I have no clue how to do a void return.

    So far I have


    public double calculateCharge()
    {

    }
  4. Replies
    7
    Views
    648

    +calculateCharge():Void

    I have an assignment that asks me to write a class:



    -------------------------
    Computer
    -------------------------
    -brand:Brand
    -price:Double
    -quantity:Integer
  5. Replies
    4
    Views
    508

    Re: Cannot get to compile

    Sorry I'm new to java, didn't realize I needed a set and get for that. All is well again, thanks again helloworld922 and JJeng.
  6. Replies
    4
    Views
    508

    Cannot get to compile

    This one works just fine


    public class Brand
    {
    private String name;
    private String city;

    public Brand()
    {
Results 1 to 6 of 6