<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7038887789706878114</id><updated>2011-11-27T15:57:14.743-08:00</updated><category term='robot'/><category term='protocol'/><category term='JFrame'/><category term='Icon'/><category term='java'/><category term='Title Bar'/><category term='environment variables'/><category term='system properties'/><category term='java RMI'/><category term='HTML'/><title type='text'>Coder Passion</title><subtitle type='html'>A Heaven for passionate coders</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://coderpassion.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7038887789706878114/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://coderpassion.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Coder Passion</name><uri>http://www.blogger.com/profile/09631066061744953751</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>7</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7038887789706878114.post-4549353502964531178</id><published>2009-08-20T00:39:00.001-07:00</published><updated>2009-08-20T00:40:15.098-07:00</updated><title type='text'>Practice Alien Number - Code Jam 2009</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: -webkit-monospace; font-size: 13px; white-space: pre-wrap; "&gt;import java.util.*; import java.io.*;  public class AlienNumber{  private static int digits = -1;  private static int sourceIndex = -1;  private static String targetNo = null;  private static List&lt;string&gt; sourcenos = new ArrayList&lt;string&gt;();  private static List&lt;string&gt; targetnos = new ArrayList&lt;string&gt;();  private static boolean found = false;   public static void main(String[] args)throws Exception{   BufferedReader br = new BufferedReader(new FileReader(args[0]));   int noOfCases = Integer.parseInt(br.readLine().trim());   int i = 0;   while(i &lt; params =" br.readLine().split(" targetno =" params[0];" digits="="-1){" digits =" -1;" sourceindex =" sourcenos.size()-1;" sourcenos =" null;" digits="="-1){" digits =" -1;"&gt; nos){     for(int j=0;j&lt;nosystem.length();j++){ no =" pre" found =" true;" digits =" -1;" sourceindex =" -1;" targetnos =" null;" sourcenos =" new"&gt;();   targetnos = new ArrayList&lt;string&gt;();   found = false;   System.gc();  } }&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7038887789706878114-4549353502964531178?l=coderpassion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coderpassion.blogspot.com/feeds/4549353502964531178/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coderpassion.blogspot.com/2009/08/practice-alien-number-code-jam-2009.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7038887789706878114/posts/default/4549353502964531178'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7038887789706878114/posts/default/4549353502964531178'/><link rel='alternate' type='text/html' href='http://coderpassion.blogspot.com/2009/08/practice-alien-number-code-jam-2009.html' title='Practice Alien Number - Code Jam 2009'/><author><name>Coder Passion</name><uri>http://www.blogger.com/profile/09631066061744953751</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7038887789706878114.post-3892186258446785910</id><published>2009-03-05T04:00:00.000-08:00</published><updated>2009-03-05T04:05:23.038-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Icon'/><category scheme='http://www.blogger.com/atom/ns#' term='HTML'/><title type='text'>Adding an Icon to your Web Page</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px; line-height: 18px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "&gt;Nowadays you would have seen web pages with icons; They are visible &lt;br /&gt;&lt;br /&gt;1. In the address box,&lt;br /&gt;2. In the Favorites (Bookmarks) pane and menu,&lt;br /&gt;3. Modern browsers also display them in tabs,&lt;br /&gt;4. there is also an extension for Firefox, which displays favicons on Google search pages.&lt;br /&gt;&lt;br /&gt;It is very easy to add an icon. You just have to create a small icon possibly 16 x 16 pixels and add the following code in your html page,&lt;br /&gt;&lt;br /&gt;Between the head tag put link rel="shortcut icon" href="Name of the File"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you want to an animation as your icon create your animation as a gif file and place it in the above tag.&lt;/span&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px; line-height: 18px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px; line-height: 18px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;http://coderpassion.comuf.com&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: Verdana; font-size: 13px; line-height: 18px; -webkit-border-horizontal-spacing: 1px; -webkit-border-vertical-spacing: 1px;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7038887789706878114-3892186258446785910?l=coderpassion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coderpassion.blogspot.com/feeds/3892186258446785910/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coderpassion.blogspot.com/2009/03/adding-icon-to-your-web-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7038887789706878114/posts/default/3892186258446785910'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7038887789706878114/posts/default/3892186258446785910'/><link rel='alternate' type='text/html' href='http://coderpassion.blogspot.com/2009/03/adding-icon-to-your-web-page.html' title='Adding an Icon to your Web Page'/><author><name>Coder Passion</name><uri>http://www.blogger.com/profile/09631066061744953751</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7038887789706878114.post-7465679892277380667</id><published>2009-02-26T22:13:00.000-08:00</published><updated>2009-02-26T22:21:44.440-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='robot'/><title type='text'>Robot in Java</title><content type='html'>&lt;div&gt;java.awt.Robot can be used to automate Keyboard,Mouse and many other. Here is a small&lt;/div&gt;&lt;div&gt;example of a keyboard operation the Robot object can do. &lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-weight: bold;"&gt;RobotTest.java&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;import java.awt.*;&lt;/div&gt;&lt;div&gt;import java.awt.event.*;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;/*&lt;/div&gt;&lt;div&gt; * @author Shazin Sadakath&lt;/div&gt;&lt;div&gt; * &lt;/div&gt;&lt;div&gt;*/&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;public class RobotTest{&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;public static void main(String[] args){&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;try{&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;Robot robot = new Robot();&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;robot.delay(500);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;robot.keyPress(KeyEvent.VK_C);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;robot.keyPress(KeyEvent.VK_O);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;robot.keyPress(KeyEvent.VK_D);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;robot.keyPress(KeyEvent.VK_E);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;robot.keyPress(KeyEvent.VK_R);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;robot.keyPress(KeyEvent.VK_P);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;robot.keyPress(KeyEvent.VK_A);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;robot.keyPress(KeyEvent.VK_S);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;robot.keyPress(KeyEvent.VK_S);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;robot.keyPress(KeyEvent.VK_I);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;robot.keyPress(KeyEvent.VK_O);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;robot.keyPress(KeyEvent.VK_N);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;}catch(Exception e){&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;   &lt;/span&gt;System.err.println(e.getMessage());&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt;  &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space:pre"&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;open up a notepad and then run the RobotTest&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;$ java RobotTest&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;and then click on the opened up notepad.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7038887789706878114-7465679892277380667?l=coderpassion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coderpassion.blogspot.com/feeds/7465679892277380667/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coderpassion.blogspot.com/2009/02/robot-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7038887789706878114/posts/default/7465679892277380667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7038887789706878114/posts/default/7465679892277380667'/><link rel='alternate' type='text/html' href='http://coderpassion.blogspot.com/2009/02/robot-in-java.html' title='Robot in Java'/><author><name>Coder Passion</name><uri>http://www.blogger.com/profile/09631066061744953751</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7038887789706878114.post-1748518846129634052</id><published>2009-02-25T23:47:00.001-08:00</published><updated>2009-02-26T20:36:33.963-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java RMI'/><title type='text'>Hello World using Java RMI</title><content type='html'>&lt;span class="Apple-style-span"   style="  ;font-family:'Lucida Grande';font-size:12px;"&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;Java RMI (Remote Method Invocation) is a variation of Remote Procedure Calls implemented out and out with Java Programming language and integrated seamlessly into Java API. Java RMI uses JNDI (Java Naming and Directory Interface) to host Java Objects on a Remote Server and allow them to be accessed via multiple clients thus providing a distributed usage of those hosted Java Objects. These hosted Java Objects actually reside in one JVM. But they are hosted in a registry so that they can be used from other JVMs too. once a Java Object of one JVM is bounded in a registry Processes from other JVMs can access it and call all the methods of that Java Object. Parameters can also be passed into those objects as well as returned values can also be captured.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;Here we discuss about a simple hello world application using Java RMI.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt; &lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-weight: bold; "&gt;Greetable.java&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;import java.rmi.*;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;/**&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt; * @author Shazin Sadakath&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt; *&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt; **/&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;public interface Greetable extends Remote{&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;            public String sayHello() throws RemoteException;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;}&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-weight: bold; "&gt;Greeter.java&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-weight: bold; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;import java.rmi.registry.*;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-weight: bold; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;import java.rmi.*;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-weight: bold; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-weight: bold; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;/**&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-weight: bold; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt; * @author Shazin Sadakath&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-weight: bold; "&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt; *&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt; **/&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;public class Greeter implements Greetable{&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;             public String sayHello(){&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                          String greeting = “Hello, World!”;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                         System.out.println(greeting);&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                         return greeting;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;             }&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;RMIServer.java&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;import java.rmi.registry.*;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;import java.rmi.*;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;import java.rmi.server.*;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;/**&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt; * @author Shazin Sadakath&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt; *&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt; **/&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;public class RMIServer{&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;              public static void main(String[] args){&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;             try{&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                          String ip = args[0];&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                          int port = Integer.parseInt(args[1]);&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                          Registry registry = LocateRegistry.getRegistry(ip,port);&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                          Remote obj = UnicastRemoteObject.exportObject(new Greeter(),0);&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                          registry.rebind(”Greeter”,obj);&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                          System.out.println(”RMI Server Started”);&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;               }catch(ArrayIndexOutOfBoundsException aie){&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                         usage();&lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;               }catch(Exception re){&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                         System.err.println(re.getMessage());&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;               }&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;private static void usage(){&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                System.out.println(”Usage: java RMIServer &lt;ip&gt; &lt;port&gt;”);&lt;/port&gt;&lt;/ip&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;RMIClient.java&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;import java.rmi.registry.*;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;import java.rmi.*;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;/**&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt; * @author Shazin Sadakath&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt; *&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt; **/&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;public class RMIClient{&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;              public static void main(String[] args){&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;              try{&lt;/span&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                          String ip = args[0];&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                          int port = Integer.parseInt(args[1]);&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                          Registry registry = LocateRegistry.getRegistry(ip,port);&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                          Greetable greeter = (Greetable) registry.lookup(”Greeter”);&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                          System.out.println(greeter.sayHello());&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;              }catch(ArrayIndexOutOfBoundsException aie){&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                         usage();&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;              }catch(Exception e){&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                         System.err.println(e.getMessage());&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;              }&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;private static void usage(){&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;               System.out.println(”Usage: RMIClient &lt;ip&gt; &lt;port&gt;”);&lt;/port&gt;&lt;/ip&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;}&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;Starting the RMI Registry in localhost&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;$ rmiregistry 9999&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;Starting the RMI Server in localhost&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;$ java RMIServer 127.0.0.1 9999&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;Starting the RMI Client in localhost&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;$ java RMIClient 127.0.0.1 9999&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt; &lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;RMI provides fast and reliable distributed application capabilities. Thus has become a major part in network based applications.&lt;/span&gt;&lt;/p&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7038887789706878114-1748518846129634052?l=coderpassion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coderpassion.blogspot.com/feeds/1748518846129634052/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coderpassion.blogspot.com/2009/02/hello-world-using-java-rmi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7038887789706878114/posts/default/1748518846129634052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7038887789706878114/posts/default/1748518846129634052'/><link rel='alternate' type='text/html' href='http://coderpassion.blogspot.com/2009/02/hello-world-using-java-rmi.html' title='Hello World using Java RMI'/><author><name>Coder Passion</name><uri>http://www.blogger.com/profile/09631066061744953751</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7038887789706878114.post-6963942897181847010</id><published>2009-02-25T23:46:00.002-08:00</published><updated>2009-02-26T20:37:05.210-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Title Bar'/><category scheme='http://www.blogger.com/atom/ns#' term='JFrame'/><title type='text'>JFrame without Title Bar</title><content type='html'>&lt;span class="Apple-style-span"   style="  ;font-family:'Lucida Grande';font-size:12px;"&gt;&lt;div class="post hentry category-java tag-java tag-jframe tag-title-bar" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;div class="snap_preview" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;JFrame is the most widely used GUI frame is Stand alone applications. Often coders need to display JFrame windows without the title bar. This code snippet shows how you can accomplish that.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-weight: bold; "&gt;JFrameTitleBarTest.java&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-weight: bold; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;import javax.swing.*;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-weight: bold; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;/**&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-weight: bold; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt; * @author Shazin Sadakath&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-weight: bold; "&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt; *&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;**/&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;public class JFrameTitleBarTest{&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;              public static void main(String[] args){&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                           JFrame jframe = new JFrame(”JFrame Title Bar Test”);&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                           jframe.setDefaultCloseOperation(jframe.EXIT_ON_CLOSE);&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                           jframe.setUndecorated(true);&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                           jframe.setSize(400,400);&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                           jframe.setLocationRelativeTo(null);&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;                           jframe.setVisible(true);&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;            }&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;span style="font-weight: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;}&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="color: rgb(102, 102, 102); font-weight: normal;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;/strong&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="post hentry category-java tag-java tag-rmi tag-network tag-server tag-client" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;/div&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7038887789706878114-6963942897181847010?l=coderpassion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coderpassion.blogspot.com/feeds/6963942897181847010/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coderpassion.blogspot.com/2009/02/jframe-without-title-bar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7038887789706878114/posts/default/6963942897181847010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7038887789706878114/posts/default/6963942897181847010'/><link rel='alternate' type='text/html' href='http://coderpassion.blogspot.com/2009/02/jframe-without-title-bar.html' title='JFrame without Title Bar'/><author><name>Coder Passion</name><uri>http://www.blogger.com/profile/09631066061744953751</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7038887789706878114.post-7958777472493164232</id><published>2009-02-25T23:46:00.001-08:00</published><updated>2009-02-26T20:38:37.233-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='environment variables'/><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='system properties'/><title type='text'>Listing all Environment Variables and System Properties of a Java Application</title><content type='html'>&lt;span class="Apple-style-span"   style="  ;font-family:'Lucida Grande';font-size:12px;"&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;When a Java Application initiates, by default it is loaded with some environment variables and system properties it can use. Using these environment variables and system properties ensures 100% platform independence. Following is a program which lists all the environment variables and system properties a Java Application can use.&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-weight: bold; "&gt;EnvironmentVariables.java&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;import java.util.*;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;/**&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt; * @author Shazin Sadakath&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt; * &lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;**/&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;public class EnvironmentVariables{&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;              public static void main(String[] args){&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                         Map env = System.getenv();&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                         Collection&lt;string&gt; col = env.keySet();&lt;/string&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                         System.out.println(”– Environment Variables –\n”);&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                         for(String s:col){&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                                   System.out.println(s + “=” + env.get(s));&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                         }&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                         System.out.println();&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                         Properties props = System.getProperties();&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                         props.list(System.out);&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;            }&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;}&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7038887789706878114-7958777472493164232?l=coderpassion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coderpassion.blogspot.com/feeds/7958777472493164232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coderpassion.blogspot.com/2009/02/listing-all-environment-variables-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7038887789706878114/posts/default/7958777472493164232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7038887789706878114/posts/default/7958777472493164232'/><link rel='alternate' type='text/html' href='http://coderpassion.blogspot.com/2009/02/listing-all-environment-variables-and.html' title='Listing all Environment Variables and System Properties of a Java Application'/><author><name>Coder Passion</name><uri>http://www.blogger.com/profile/09631066061744953751</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7038887789706878114.post-4824848054427251093</id><published>2009-02-25T23:44:00.000-08:00</published><updated>2009-02-26T20:38:59.996-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java'/><category scheme='http://www.blogger.com/atom/ns#' term='protocol'/><title type='text'>Finding Protocol Type using Java</title><content type='html'>&lt;span class="Apple-style-span"   style="  ;font-family:'Lucida Grande';font-size:12px;"&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;HTTP is the most widely used communication protocol of the internet. But nowadays HTTPS is also coming up and catching up with its secured connections. HTTPS provides encryption while transmitting data packets and provides a 3rd party verification of the server, confirming that a url is a valid one and that it actually represents the body which it claims to be representing. &lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;This java code snippet differentiates a given url by categorizing it as HTTP or HTTPS&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;&lt;strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; font-weight: bold; "&gt;ProtocolType.java&lt;/strong&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;import java.net.*;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;import javax.net.*;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;import javax.net.ssl.*;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;import java.io.IOException;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;/**&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt; * @author Shazin Sadakath&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt; *&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;**/&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;public class ProtocolType{&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;              public static void main(String[] args){&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                       try{&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                                        URL url = new URL(args[0]);&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                                        URLConnection connection = url.openConnection();&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                                        connection.connect();&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt; &lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                                        if(connection instanceof HttpURLConnection){&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                                                       System.out.println(”This is a valid HTTP Protocol”);&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                                        }else if(connection instanceof HttpsURLConnection){&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                                                       System.out.println(”This is a valid HTTPS Protocol”);&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                                        }else{&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                                                       System.out.println(”This is a unrecognized Protocol”);&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                                        }&lt;span style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; "&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                       }catch(ArrayIndexOutOfBoundsException aiobe){&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                                        usage();&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                       }catch(MalformedURLException mue){&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                                         System.out.println(”Not a valid URL”);&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                       }catch(IOException ioe){&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                                         System.out.println(”Can not Connect to ” + args[0]);&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                       }&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;          }&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt; &lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;           private static void usage(){&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;                           System.out.println(”Usage: ProtocolType &lt;url&gt; \n Ex: ProtocolType http://coderpassion.wordpress.com”);&lt;/url&gt;&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;           }&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;}&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;If you are in a network which uses a proxy server to connect to the internet use&lt;/p&gt;&lt;p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font: normal normal normal 1em/normal 'Lucida Grande', 'Lucida Sans Unicode', Verdana, sans-serif; color: rgb(102, 102, 102); margin-top: 12px; margin-right: 0px; margin-bottom: 12px; margin-left: 0px; line-height: 1.5em; "&gt;$ java -Dhttp.proxyHost=&lt;proxy&gt; &lt;proxy&gt;ProtocolType &lt;url&gt;&lt;/url&gt;&lt;/proxy&gt;&lt;/proxy&gt;&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7038887789706878114-4824848054427251093?l=coderpassion.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://coderpassion.blogspot.com/feeds/4824848054427251093/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://coderpassion.blogspot.com/2009/02/finding-protocol-type-using-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7038887789706878114/posts/default/4824848054427251093'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7038887789706878114/posts/default/4824848054427251093'/><link rel='alternate' type='text/html' href='http://coderpassion.blogspot.com/2009/02/finding-protocol-type-using-java.html' title='Finding Protocol Type using Java'/><author><name>Coder Passion</name><uri>http://www.blogger.com/profile/09631066061744953751</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
