• Post Reply Bookmark Topic Watch Topic
  • New Topic

URLConnection question  RSS feed

 
Matt R. Hansen
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having difficulty making this instance of URL work for me. Here is the line:
baseUrl = new URL("http://" + s + ":" + i + "/");

Any help would be greatly appreciated.
 
ARS Kumar
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you can print out the value of the whole string ( including the values of s and i ) then we will know what URL finally comes out. Please post the exact problem.
-ARSKumar
 
Matt R. Hansen
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. I made a poor mistake. Problem solved.
 
shailesh sonavadekar
Ranch Hand
Posts: 1874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tao , Welcome to javaranch.
PROPER NAMES ARE NOW REQUIRED
Please look carefully at official naming policy at javaranch & reregister yourself with proper first & last name. Please adhere to official naming policy & help maintain the decorum of the forum.
Waiting for your posts with proper first & last name. Once you have reregister , please let us know about that & then your previous account will be disabled.
Regards.

Your Friendly Bartender
Shailesh.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!