Search:

Type: Posts; User: Tamilarasi

Search: Search took 0.08 seconds.

  1. Replies
    9
    Views
    1,885

    Re: Im very new to java And switch statements

    Try this code this is work correctly..I hope this will be help to you..



    class Question07{

    public static void main(String args[]) throws IOException{

    BufferedReader stdin = new...
  2. Replies
    9
    Views
    1,885

    Re: Im very new to java And switch statements

    you declare the variable "a" globally or outside of the loop. Now you can run that code.

    The problem is variable "a" is declared inside of the loop every time .

    So the variable is not handle...
Results 1 to 2 of 2