Search:

Type: Posts; User: CrimsonFlash

Search: Search took 0.07 seconds.

  1. 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: ");...
  2. 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.
  3. 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.
  4. 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?
  5. 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.
  6. 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.
  7. 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.
  8. 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 =...
Results 1 to 8 of 8