Search:

Type: Posts; User: tyb97

Search: Search took 0.11 seconds.

  1. Replies
    14
    Views
    2,004

    [SOLVED] Re: How do I make my program accept letters?

    Thank you, I will look into that, and I'm making my first Java program, that's what I need help with, but its fixed now, so thank you!
  2. Replies
    14
    Views
    2,004

    [SOLVED] Re: How do I make my program accept letters?

    Yes, Yes I have. But I do have one last question, I plan to show this program to kids a school, but the java version on the computers at our school have jre 1.5... Would It be compatible?
  3. Replies
    14
    Views
    2,004

    [SOLVED] Re: How do I make my program accept letters?

    Thanks for the help guys, but your are allowed to switch on a string, my real problem was my IDE was outta date :/ so it always came back at me with an error, when there was no error at all..
  4. Replies
    14
    Views
    2,004

    [SOLVED] Re: How do I make my program accept letters?

    Ok I tried char, her is my code

    import java.util.Scanner;
    public class Text_Test {

    /**
    * Author Tyler
    */

    public static void main(String[] args) {
  5. Replies
    14
    Views
    2,004

    [SOLVED] Re: How do I make my program accept letters?

    Anything typed from a - z, but how would I make it to where I can type it, and get an answer? I have always used switch statements but those only work with int types.
  6. Replies
    14
    Views
    2,004

    [SOLVED] How do I make my program accept letters?

    Ok, my problem is you cannot declare a switch with the type string or char, so how do I make it to where I type a letter, and it will display "Test complete" here is the code I have constructed,
    ...
Results 1 to 6 of 6