开发者

try & catch blocks with implement & interface

开发者 https://www.devze.com 2023-04-07 04:44 出处:网络
I tr开发者_开发技巧ied this tutorial : http://about-android.blogspot.com/2010/02/create-custom-dialog.html

I tr开发者_开发技巧ied this tutorial : http://about-android.blogspot.com/2010/02/create-custom-dialog.html There is no "hello" debug message when doing try & catch blocks with implement & interface. Do you think that i can do the try catch block with implement & interface??

    private class OnReadyListener implements MyCustomDialog.ReadyListener 
{
  @Override
  public void ready(String name) 
  {  
     try
     {

        String sentence = "hello";
        Log.d(TAG, "OnReadyListener ready"  + " " + sentence );
     }
     catch (UnknownHostException ex) 
     { 
    ex.printStackTrace();   
     }
     catch (IOException ex) 
     {
    ex.printStackTrace();
     }

  }
 }


There is no semi-colon after Log.d()

0

精彩评论

暂无评论...
验证码 换一张
取 消