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...
Type: Posts; User: Deployment
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...
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...
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
...
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...
Hey everyone,
Im working on passing a double input to a method by the following code:
//sales and sPerson Declaration
double sales;
sales = AnnualSales;
...
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...
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;"
...
Yes
num1 = Integer.parseInt(num.nextLine());
while (num1 != 1 && num1 != 2 ) {
System.out.print("You did not enter 1 or 2: ");
...
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...
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());
...
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,...
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...
So what does the "o" stand for in these commands?
- Deployment
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...
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...
The second class should be called at the end of the first. Once the SalesAmount has been collected from the user
Im not entirely sure, can you help?
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...