Can someone tell me why

Can someone tell me why is the ctrl not returned back to the println stmt of method counter after the method counterRecursion is executed???
pgm
class Trial1
     int ct=0;
     void counter(String word)
          counterRecursion(word);
          System.out.println(ct);
     void counterRecursion(String w)
          if (w!=null)
               switch (w.charAt(0))
                    case 'a':
                    case 'e':
                    case 'i':
                    case 'o':
                    case 'u': ct++;
                    default:counterRecursion(w.substring(1,w.length()));
class Trial2
     public static void main(String args[])
          try
               Trial1 c=new Trial1();
               c.counter("hello");
          catch(Exception e)
     }     

What fsato4 means is never use an empty catch block:
try {
    // code
catch (Exception e) {}If there's an error anywhere (as it seems it's happening) it is being ignored.
Using:
try {
    // code
catch (Exception e) {
    // do something with the exception, don't simply ignore it
    e.printStackTrace();
}Prints any error in the console.

Similar Messages

Maybe you are looking for

  • My airplay button will not show up on any of my devices anymore.

    My airplay button no longer will show up on any of my devices. I have the new Ipad, Iphone 4s, Ipod touch, and macbook pro. Every device is on the same wifi network and the network is secure and 100% strong. I was just using airplay yesterday and now

  • Air play mirroring doesn't work mac pro desktop 2010 mid 27" display

    mac pro desktop 2010 mid '27" display' I have turn on the " show mirroring options in the menu bar " it does not show up I also have Imac workes just fine ,Iphone , Ipad , same workes just fine so it is in the mac pro is there a down load fix or do I

  • Best Practices in use of ABAP for SRM and/or CRM Configuration

    I was wondering if there is a document that defines best practices for the use of ABAP with the installation and customization of SRM and/or CRM. Such as amount of ABAP coding typically required, and best practices around the use of ABAP for customiz

  • Import photos that don't exist...

    When I import pictures into iPhoto from an external hard drive, there are mystery pictures that are showing up. These are pictures that used to exist on the HD but that I deleted from there. I deleted my entire iPhoto library and emptied the trash wi

  • Inbound idoc  mess type:DESADV basic type: DELVRY03  Item text

    Hi all, W're having a inbound process to create inbound deliveries via IDOC. mess type:DESADV basic type: DELVRY03  We want to create a item text on the delivery via the IDOC.  Is this possible? I see that there's a segment E1TXTH9 - E1TXTP9  to put