Search:

Type: Posts; User: mstratmann

Search: Search took 0.13 seconds.

  1. Replies
    1
    Views
    110

    Help with Arrays

    Hi I am trying to pass information from one method in to a 2 dimensional array any help is appreciated.



    import java.io.PrintStream;
    import java.util.Scanner;

    public class Survey {

    ...
  2. Thread: Need Help!

    by mstratmann
    Replies
    2
    Views
    122

    Re: Need Help!

    Ok here is the code!!


    public WebHostOrder14() {
    WebHost webHost;
    double average;
    ShippingData shipping;
    ShippingData highest;
    ShippingData lowest;
  3. Thread: Need Help!

    by mstratmann
    Replies
    2
    Views
    122

    Need Help!

    Hi I am trying to finish a simple program up and having a few issues with the code and the output. Here is my output!
    Welcome to the Web Host Ordering System

    Please enter the price of the new...
  4. Replies
    20
    Views
    211

    Re: Instance variable inside a method

    I have got it to work for the most part however I now get this as my output! Any suggestions on why my loop does not continue to run?
    run:

    Welcome to the Web Host Ordering System

    Please enter...
  5. Replies
    20
    Views
    211

    Re: Instance variable inside a method

    I guess not, I just see the one I sent you in it if it is not to much trouble could you look over the WebHostOrder14 class and correct me if I'm wrong?
  6. Replies
    20
    Views
    211

    Re: Instance variable inside a method

    If I am not mistaking WebHost webHost; is what you are asking about right?
  7. Replies
    20
    Views
    211

    Re: Instance variable inside a method

    Ok I see the confusion now because shipping is defined in public class WebHostOrder14 as well as highest and lowest, however highest and lowest is also defined in the overloaded constructor in...
  8. Replies
    20
    Views
    211

    Re: Instance variable inside a method

    WebHost
    code is posted in post 1
  9. Replies
    20
    Views
    211

    Re: Instance variable inside a method

    shipping
    highest
    lowest
  10. Replies
    20
    Views
    211

    Re: Instance variable inside a method

    I guess I am not following what your asking I am sorry the code has worked until I added this new step and it has all been tested up to this point I guess the easiest way to explain what I need to do...
  11. Replies
    20
    Views
    211

    Re: Instance variable inside a method

    Yes as far as I understand I need to use printf() to display the output. I need to display the highest input value and the lowest inputed value, also I need to display the accumulated total of the...
  12. Replies
    20
    Views
    211

    Re: Instance variable inside a method

    In the computeShippingCharges() method I need to display total shipping, highest charge, and the lowest charge. I added to the WebHost() class I do not know if that is correct I am lost on this one!
  13. Replies
    20
    Views
    211

    Instance variable inside a method

    I am working on a project where I need to return 3 values I understand I can only return one using a method alone! So I need to add 2 instance variables, that will return the other 2 values. Can...
  14. Replies
    7
    Views
    112

    Re: Need help STUCK

    I am sorry could you please give me an example; I do not understand like I said I am a newbie!
  15. Replies
    7
    Views
    112

    Re: Need help STUCK

    sorry autocorrect will respond in 30 minutes from my work

    --- Update ---

    Welcome to the Web Host Ordering System

    Enter 0 to end
    Please enter the price of the new package: $
    150
    Please...
  16. Replies
    7
    Views
    112

    Re: Need help STUCK

    at the end of the loop at Justins no option to repeat in account all the inputs for the loop not just the price part of the loop
  17. Replies
    7
    Views
    112

    Need help STUCK

    I need to ask if the user wants to add another product receive a yes or no and run the loop again? Also I need to count the products and add the prices together to figure an average?


    private...
  18. Re: I am a newbie and I am stuck PLEASE HELP!!!

    I changed the text color of the "while" section

    do {
    System.out.print("What will be the product ID: ");

    while (!scanner.hasNextInt()) {
    ...
  19. Re: I am a newbie and I am stuck PLEASE HELP!!!

    when I run the code this is the error I am getting
    run:

    Welcome to the Web Host Ordering System

    Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - missing return...
  20. Re: I am a newbie and I am stuck PLEASE HELP!!!

    Like I said I am new at this and I found the do{....}while{.....scanner.next();} online for validation
    The error I am getting says "while expected" when I try to close the do statement
  21. I am a newbie and I am stuck PLEASE HELP!!!

    I am trying to validate that a user input valid information at the prompt but I keep getting errors please help!
    Here is my code:

    private double computeAverageSales() {
    WebHost...
  22. Replies
    2
    Views
    204

    Re: Simple program with errors

    Thanks for the help I was finally able to finish debugging my code and now I can move on with the programming. \:D/ I was wondering how would I go about connecting my programs to a database?
  23. Replies
    2
    Views
    204

    Simple program with errors

    Here is my code


    /*
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    */
    package payroll;
    /**
    *
Results 1 to 23 of 23