Search:

Type: Posts; User: CrimsonFlash

Search: Search took 0.29 seconds.

  1. Replies
    4
    Views
    517

    Re: Using CharAt statement

    So, um, what command should I use to store the entered information into order1.setShippingCode?
  2. Replies
    4
    Views
    517

    Using CharAt statement

    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;
  3. Replies
    5
    Views
    746

    Re: 46: Unreachable Statement

    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...
  4. Replies
    5
    Views
    746

    Re: 46: Unreachable Statement

    I want the if loop to end when I enter 0 for the amount of hours worked.
  5. Replies
    5
    Views
    746

    46: Unreachable Statement

    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...
  6. Re: One last question: How to get menu to repeat!

    Thanks Actinistia, I'm finally on my way to understanding this!
  7. Re: One last question: How to get menu to repeat!

    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;//
  8. One last question: How to get menu to repeat!

    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;//
  9. Replies
    2
    Views
    247

    Re: Method is not initiating formula

    Thank you, I figured it out before you posted thankfully, but you guys are very helpful, and I appreciate it very much.
  10. Replies
    2
    Views
    247

    Method is not initiating formula

    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;
  11. Re: How to call a value from a different method to main

    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: ");...
  12. Re: How to call a value from a different method to main

    ....I understand now. Thanks a bunch! I believe I'm a bit too dense for Java coding as a career.
  13. Re: How to call a value from a different method to main

    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.
  14. Re: How to call a value from a different method to main

    But my menu method doesn't contain any parameters..... how would I do it in this case?
  15. Re: How to call a value from a different method to main

    Thank you! I'll try that; if I have anymore questions I'll know who to ask.
  16. Re: How to call a value from a different method to main

    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.
  17. Re: How to call a value from a different method to main

    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.
  18. How to call a value from a different method to main

    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 =...
  19. Replies
    10
    Views
    691

    Re: ()Method cannot be applied to ()

    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.
  20. Replies
    10
    Views
    691

    Re: ()Method cannot be applied to ()

    import java.util.Scanner;

    public class Quiz7
    {
    public static void main(String[] args)
    {
    String radius;
    Scanner keyboard = new Scanner(System.in);
    String programName;
    String...
  21. Replies
    10
    Views
    691

    Re: ()Method cannot be applied to ()

    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.
  22. Replies
    10
    Views
    691

    Re: ()Method cannot be applied to ()

    So, on line 19, I need to specify that it is an integer in the parentheses?
  23. Replies
    10
    Views
    691

    ()Method cannot be applied to ()

    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...
Results 1 to 23 of 23