Search:

Type: Posts; User: Deployment

Search: Search took 0.12 seconds.

  1. Very Simple "Add to Cart/View Cart" Functionality

    First I would like to admit my current Android Developer Status. I have began programming in this field about 2 weeks ago, and my knowledge is lilting. I plan to stick around these forums with intent...
  2. Replies
    5
    Views
    347

    Re: Trouble Calling Method

    Ah, I understand. I edited that out and corrected after posting. Thanks again for your help with everything.

    As some background, Im in a 5 week course in which this program took an evolution of...
  3. Replies
    5
    Views
    347

    Re: Trouble Calling Method

    I decided to use a different method figuratively and literally as I could not figure out why spsales could not be passed to GetComm(). With that being said I used



    //Output Total Commission
    ...
  4. Replies
    3
    Views
    959

    Re: Double cannot be dereferenced

    I was at a standstill here because I could not convert the double to a string as the method required a double. Therefore I wrote a new method that allowed use of a tostring conversion and got this to...
  5. Replies
    3
    Views
    959

    Double cannot be dereferenced

    Hey everyone,

    Im working on passing a double input to a method by the following code:



    //sales and sPerson Declaration
    double sales;
    sales = AnnualSales;
    ...
  6. Replies
    5
    Views
    347

    Trouble Calling Method

    Hey guys, thank you for the help with previous posts. Right now I am attempting to call a method getComm and getAnnComp but am slightly confused with the variable I should place before the method...
  7. Replies
    6
    Views
    338

    Re: Try-Catch For Specific Numbers?

    Thank you, this worked perfectly after moving the "int num1 = Integer.parseInt(num.nextLine());" outside of the loop and fixing a few brackets. Also changed "boolean ans = true;" to "boolean ans;"
    ...
  8. Replies
    6
    Views
    338

    Re: Try-Catch For Specific Numbers?

    Yes



    num1 = Integer.parseInt(num.nextLine());

    while (num1 != 1 && num1 != 2 ) {
    System.out.print("You did not enter 1 or 2: ");
    ...
  9. Replies
    6
    Views
    338

    Re: Try-Catch For Specific Numbers?

    I tried that and it worked for checking for 1 and 2, but then after the while loop was initiated if a string was entered the program would fail again. Is there a way to incorporate the try-catch into...
  10. Replies
    6
    Views
    338

    Try-Catch For Specific Numbers?

    Hey guys, right now I need the user to either input a 1 or a 2

    I am using the following Try-Catch


    while (true)
    try {
    num1 = Integer.parseInt(kb.nextLine());
    ...
  11. Replies
    3
    Views
    351

    Re: Changing Variable Within Method

    I tried this, but nothing is outputting in this file. Here is the code now


    /*
    * To change this license header, choose License Headers in Project Properties.
    * To change this template file,...
  12. Replies
    3
    Views
    351

    Changing Variable Within Method

    Hello Guys, I am currently trying to generate a table output based upon commission rate. With that in mind I am attempting to alter the "rate" variable given a series of "if statements". Here is my...
  13. Re: Passing Double Value from Class to Class

    So what does the "o" stand for in these commands?

    - Deployment
  14. Re: Passing Double Value from Class to Class

    That works perfectly. Thank you for your help John!

    I plan to review this code and do a few more tests myself to make sure that I engrain this information into my head. Sorry if I seem like a noob...
  15. Re: Passing Double Value from Class to Class

    Am I putting the "invoke" in the correct location?


    package salesperson_part1;

    import java.io.IOException; // For BufferReader
    import java.io.InputStreamReader; // For BufferReader
    import...
  16. Re: Passing Double Value from Class to Class

    The second class should be called at the end of the first. Once the SalesAmount has been collected from the user
  17. Re: Passing Double Value from Class to Class

    Im not entirely sure, can you help?
  18. Passing Double Value from Class to Class

    Hello Java Forums, I am currently starting a Java Course in school and was hoping to get a little help. I won't be one to post an entire assignment, I am simply looking to pass a double value from...
Results 1 to 18 of 19