Ok, I have worked the program out a little bit more. But when I run it it is not printing out the users name.
My New Program is this:
import java.util.Scanner;
public class...
Type: Posts; User: lynn66
Ok, I have worked the program out a little bit more. But when I run it it is not printing out the users name.
My New Program is this:
import java.util.Scanner;
public class...
Norm, because I am a beginner I am not sure how to do that. I tried to put something like
private String usersName = ' '; but not sure how to ask the question.
Yes, Only once.
I commented it out because I think I need these statements in the code but I am not sure where I need to put them. I need to be able to ask the user their name at the beginning of the program and...
I have been working on this program for about a week now and I think I have it down pack. The issue I am having when I ask the user at the beginning of the game (human vs computer) every time I run...
Yes, absolutely.
My output should look something like this...
Percent gain / loss: 250.0%
Amount gain / loss: $125,000.00
I think I have a cluster of a mess here and was wondering if someone could help me in the right direction. I am trying to write a small program that will calculate the gain and/or loss of the sale of...
Ok GregBrannon, Thank you for your response. I made the changes but the errors that pop up is that the system wants to make them 'static'. Is that right?
Ok. so I just added
int i inside the (). I actually looking at it not I already had it once as a method. My output after making the change looks like this:
Expected Count: 1 -----> Actual...
I believe I have this program CounterTester.java down but in my output the program is increasing the way I want it to but it is not decreasing the way I want it to.
:confused:
Would someone...
Just wanted to let you know I solved the problem. Thank you for your help.
Thank you for your direction.
Hello, I am trying to create a java file that will print out the temperature in Fahrenheit. This is my code.
import java.util.Scanner;
public class TemperatureConverter
{
public static...