Search:

Type: Posts; User: Freaky Chris

Search: Search took 0.11 seconds.

  1. Replies
    17
    Views
    10,186

    Re: switch with character

    Damn switches to hell! They always were a bizzare feature in programming languages imo.
  2. Replies
    17
    Views
    10,186

    Re: switch with character

    I'm confused...

    public class Switch {

    public static void main(String[] args) {
    Scanner sin = new Scanner(System.in);
    char x = sin.next().charAt(0);
    switch(x){
    case 'a':...
Results 1 to 2 of 2