top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Hey ! How Can Write Java program to decomposes a well-formed URL [CLOSED]

–2 votes
501 views

(a) Write a Java program the decomposes a well-formed URL input into its components: scheme (protocol),
hostname, port number, and the resource (le).

(b) Reconstruct the decomposed URL in part (a) into its equivalent one, but replace the hostname with its IP
address.
Tip: Have a closer look at the java.net.URL API and the IdentifyHostIP.java.txt from

closed with the note: no one help me
posted Nov 2, 2014 by As M Ob

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button
can not understand anything what is the problem u r facing
Divya asked the detail as it is not explaining what the problem is but no response.
People want to help others fro free thats why they are here.

Similar Questions
+1 vote

Assume that the base URL for a Web page is
http://www.example.com/hws/hw1/detail/index.html
Also assume that this page contains the relative URLs
../images/logo-3.gif
/static/images/icon2.jpg
../../header.inc
Give the absolute URL corresponding to the above relative URLs

.................................

  1. Give a complete minimal HTTP GET request corresponding to the URL
    http://www.example.org:8085/samples/okay/well?isThis=right#period
  2. Give a mailto-scheme URL to send e-mail with subject Test Message to a user named Roger at host
    www.example.com.
0 votes

While clicking on the image it opens into the browser. I dont want to allow client to open the image in browser as separate url. I have blocked the /image/ directory from access/listing , but the image is opening.

How to stop that in apache. Please help me.

0 votes

<?xml version="1.0" encoding="utf-8" ?>
Assignment 2

var count;
// the number of value that you want to check if number or no
count=window.prompt("please enter value for count ");
var c;
c=parseInt(count);
if(!isNaN(c))
window.alert("The Value Is Number ! ");
else
{
window.alert("SorrY . The Value is Not Number (NaN ) ");
c=window.prompt(" NOT NUMBER ! \n please enter value for count ");
}
while(c<0)
{
c=window.prompt(" NEGATIVE NUMBER ! \n please enter value for count ");
if(!isNaN(c))
window.alert("The Value Is Number ! ");
else
{
window.alert("SorrY . The Value is Not Number (NaN ) ");
c=window.prompt(" NOT NUMBER ! \n please enter value for count ");
window.alert(" POSITIVE NUMBER ");
}}
document.writeln("GooD . The Value is Positive ");

...