Hi Guys


I do some coding for check connectivity of the links in web page.I just start it .in below coding i send String to method called "checkwebpage".In that method new URL is created.I just wanna to check whether the web page is get connection.Help me

Thank You

Java Code:
Public void checkwebpage(String URL1){
          Boolean conn;
          try{
             URL webpage=new URL(URL1);
                 URLConnection Y=webpage.openConnection();

[COLOR="Red"]I want to check whether Y is has a value in this moment
[/COLOR]