So, um, what command should I use to store the entered information into order1.setShippingCode?
Type: Posts; User: CrimsonFlash
So, um, what command should I use to store the entered information into order1.setShippingCode?
import java.util.Scanner;
import java.text.DecimalFormat;
public class Proj3
{
public static void main(String[] args)
{
Scanner kb = new Scanner(System.in);
String strCustomerName;
Alright, I have another questions, and thanks. I am calling the emp1.setRate from a different java class, and I want to know how to total all of the numbers that I input. Can you be of any assistance...
I want the if loop to end when I enter 0 for the amount of hours worked.
import java.util.Scanner;
public class Quiz9
{
public static void main(String[] args)
{
Scanner kb = new Scanner(System.in);
Utility util1 = new Utility();
Payroll emp1 = new...
Thanks Actinistia, I'm finally on my way to understanding this!
import java.util.Scanner;
public class Quiz7
{
public static void main(String[] args)
{
Scanner kb1 = new Scanner(System.in);
String programName;//
String dueDate;//
int radius;//
import java.util.Scanner;
public class Quiz7
{
public static void main(String[] args)
{
Scanner kb1 = new Scanner(System.in);
String programName;//
String dueDate;//
int radius;//
Thank you, I figured it out before you posted thankfully, but you guys are very helpful, and I appreciate it very much.
import java.util.Scanner;
public class Quiz7
{
public static void main(String[] args)
{
Scanner kb1 = new Scanner(System.in);
String programName;
String dueDate;
int radius;
Though I do have another question: How do I call a method in a switch statement?
switch(iMenuInput1)
{
case 1:
areaCircle(radius);
System.out.print("Enter the radius: ");...
....I understand now. Thanks a bunch! I believe I'm a bit too dense for Java coding as a career.
In the menu method, I renamed ImenuInput to ImenuInput and declared ImenuInput2 =1 + 2 and then declared iMenuInput1 = 3. It doesn't work needless to say.
But my menu method doesn't contain any parameters..... how would I do it in this case?
Thank you! I'll try that; if I have anymore questions I'll know who to ask.
But I'm storing it in the variable iMenuInput, right? I'm confused, and I'm sure I'm confusing you as well. If you could give me an example of what you mean on which line, I'd appreciate it.
How would I store this value in a variable? I'm completely new to Java in my 5th week of class, sorry for seeming ignorant.
import java.util.Scanner;
public class Quiz7
{
public static void main(String[] args)
{
Scanner kb1 = new Scanner(System.in);
String programName;
String dueDate;
int iMenuInput =...
In our Java class, we are working with UML statements, so I have to stick to calling the methods like that. Unless I'm missing something, of course.
import java.util.Scanner;
public class Quiz7
{
public static void main(String[] args)
{
String radius;
Scanner keyboard = new Scanner(System.in);
String programName;
String...
Alright, thank you. It is now telling me that I am missing a .class on the same line. How would I go about fixing this. And thank you again for your quick replies.
So, on line 19, I need to specify that it is an integer in the parentheses?
So, after two days of trying to figure out the problem, I've decided to come to the experts for advice. Here is my code:
import java.util.Scanner;
public class Quiz7
{
public static void...