Search:

Type: Posts; User: Charlie.beat

Search: Search took 0.31 seconds.

  1. Need help with Enums and setting costs

    Hello everyone, first i want to thank anyone who will help and guide me through this problem I am having.

    - My first issue is with the "enum CustomerType", in my Customer.java class I am required...
  2. Replies
    19
    Views
    844

    Re: Inheritance; Problem with Test class

    Ok, dang feels like I am lost here, its a bad feeling, sorry for the dumb headed mistakes.
    But, is this somewhere along the right direction?



    public class PhoneTest
    {
    public static void...
  3. Replies
    19
    Views
    844

    Re: Inheritance; Problem with Test class

    So like something like this?



    public static void printBill (Phone p[])
    {

    for (Phone m:myPhones)
    {
  4. Replies
    19
    Views
    844

    Re: Inheritance; Problem with Test class

    then the main method calls printBill
  5. Replies
    19
    Views
    844

    Re: Inheritance; Problem with Test class

    Yes, what I am trying to do is for Method printBill prints the the information for each instance to the system prompt as follows:

    Type Minutes $xxx.xx x/x/xxxx
    Type ...
  6. Replies
    19
    Views
    844

    Re: Inheritance; Problem with Test class

    Thank you, in regards to printBill, this is the part that will output the Type, Minutes, monthly charge and the bill date. Where Type is the type of phone (cell or land line), Minutes is minutes used...
  7. Replies
    19
    Views
    844

    Re: Inheritance; Problem with Test class

    Awesome, now in regards to printBill, thats the one thats going to print all the information in the way the requirements requires me to do correct?
  8. Replies
    19
    Views
    844

    Re: Inheritance; Problem with Test class

    Ok i finally got some output back:
    I made this change


    for (Phone m:myPhones)
    {
    System.out.println(m.toString());
    }
  9. Replies
    19
    Views
    844

    Re: Inheritance; Problem with Test class

    Ok got it, I am glad to see that it finally compiled, but I get this in my output:


    new-host-3:desktop carlosalvarez$ java PhoneTest
    [[Ljava.lang.String;@33f42b49
    [[Ljava.lang.String;@33f42b49...
  10. Replies
    19
    Views
    844

    Re: Inheritance; Problem with Test class

    Wow you have definitely been a great help today, feels like I am getting somewhere now.
    I believe i have all the things I needed to fix up to right now done, now in regards to the the to call the...
  11. Replies
    19
    Views
    844

    Re: Inheritance; Problem with Test class

    Scratch that, I managed to fix the new Date to



    if (d[i][0].equals("Cell"))

    myPhones [i] = new CellPhone (d[i][1], d[i][2],
    new Date...
  12. Replies
    19
    Views
    844

    Re: Inheritance; Problem with Test class

    Got it I made the changes needed. Thanks alot for your input, I''ll post my PhoneTest class to see if my changes are correct in regards to your response.



    public class PhoneTest
    {
    public...
  13. Replies
    19
    Views
    844

    Inheritance; Problem with Test class

    Hello Everyone, everything has been going good with the whole JAVA learning process until today. I have been working on Inheritance and have not been able to complete this project.
    My problem is...
Results 1 to 13 of 13