<?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:blogger='http://schemas.google.com/blogger/2008' 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-9058958302914764763</id><updated>2024-09-08T07:17:09.009-07:00</updated><title type='text'>Robotics For All - To Learn</title><subtitle type='html'>Social network for electronic, programing and robotics researchers.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://wwwroboticsforall.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9058958302914764763/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://wwwroboticsforall.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Saman Kumara</name><uri>http://www.blogger.com/profile/02941696176127299736</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9058958302914764763.post-7803852356473512932</id><published>2012-02-14T06:07:00.000-08:00</published><updated>2012-02-14T06:11:14.485-08:00</updated><title type='text'>Getting IP address in java</title><content type='html'>&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;try&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;{&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;InetAddress[] addresses = InetAddress.getAllByName( &quot;http://wwwroboticsforall.blogspot.com/&quot; /* Ip assress or Domain name */ );&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;b&gt;for ( int i=0; i&lt;/b&gt;&lt;addresses.length; )=&quot;&quot; i++=&quot;&quot; {&lt;br=&quot;&quot;&gt;&lt;b&gt; String hostname = addresses[i].getHostName();&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.out.println(addresses[i].getHostAddress());&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.out.println( hostname );&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
}&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt; catch (UnknownHostException e)&lt;br /&gt;
{&lt;br /&gt;
System.out.println(&quot;unknown host&quot;);&lt;br /&gt;
}&lt;/b&gt;&lt;/addresses.length;&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://wwwroboticsforall.blogspot.com/feeds/7803852356473512932/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wwwroboticsforall.blogspot.com/2012/02/getting-ip-address-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9058958302914764763/posts/default/7803852356473512932'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9058958302914764763/posts/default/7803852356473512932'/><link rel='alternate' type='text/html' href='http://wwwroboticsforall.blogspot.com/2012/02/getting-ip-address-in-java.html' title='Getting IP address in java'/><author><name>Saman Kumara</name><uri>http://www.blogger.com/profile/02941696176127299736</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9058958302914764763.post-4934000004458695726</id><published>2012-02-09T07:18:00.000-08:00</published><updated>2012-02-09T07:18:00.770-08:00</updated><title type='text'>How to read file attibutes</title><content type='html'>import java.io.File;&lt;br /&gt;
import java.io.FileNotFoundException;&lt;br /&gt;
import java.io.IOException;&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 *&lt;br /&gt;
 * @author Saman&lt;br /&gt;
 */&lt;br /&gt;
//http://wwwroboticsforall.blogspot.com/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
//Use following source file to test and lean java file attributes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
public class Attrib {&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    void print(String fileName)throws IOException,FileNotFoundException{&lt;br /&gt;
    //Prints attributes in console.&lt;br /&gt;
    //http://wwwroboticsforall.blogspot.com/&lt;br /&gt;
&lt;br /&gt;
        File file=new File(fileName);&lt;br /&gt;
        System.out.println(&quot;\n&quot;+file.getAbsoluteFile()+&quot; file attributes..\n&quot;);&lt;br /&gt;
        System.out.println(file.canExecute()?&quot;Excutable\n&quot;:&quot;Not a Excutable\n&quot;);&lt;br /&gt;
        System.out.println(file.canRead()?&quot;Readable\n&quot;:&quot;Unreadable\n&quot;);&lt;br /&gt;
        System.out.println(file.exists()?&quot;File already exits\n&quot;:&quot;File not Found\n&quot;);&lt;br /&gt;
        System.out.println(file.canWrite()?&quot;Writable\n&quot;:&quot;Unwritable\n&quot;);&lt;br /&gt;
        System.out.println(file.isDirectory()?&quot;Directory\n&quot;:&quot;Not a derectory\n&quot;);&lt;br /&gt;
        System.out.println(file.isFile()?&quot;File\n&quot;:&quot;Not a file\n&quot;);&lt;br /&gt;
        System.out.println(file.isHidden()?&quot;Hidden File\n&quot;:&quot;Visible File\n&quot;);&lt;br /&gt;
        &lt;br /&gt;
&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    public static void main(String[] args) {&lt;br /&gt;
    //http://wwwroboticsforall.blogspot.com/&lt;br /&gt;
        try {&lt;br /&gt;
&lt;br /&gt;
            //Replace fileNameWithPath to created file on your computer.&lt;br /&gt;
&lt;br /&gt;
            //C:\boot.inf is a system files in windows operating systems and boot informations included&lt;br /&gt;
&lt;br /&gt;
            String fileNameWithPath=&quot;c:/boot.ini&quot;;&lt;br /&gt;
            Attrib attrib=new Attrib();&lt;br /&gt;
            attrib.print(fileNameWithPath);&lt;br /&gt;
&lt;br /&gt;
        } catch (Exception e) {&lt;br /&gt;
            e.printStackTrace();&lt;br /&gt;
            //if an error found prints in the console, so you can find out error easily.&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
}</content><link rel='replies' type='application/atom+xml' href='http://wwwroboticsforall.blogspot.com/feeds/4934000004458695726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wwwroboticsforall.blogspot.com/2012/02/how-to-read-file-attibutes.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9058958302914764763/posts/default/4934000004458695726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9058958302914764763/posts/default/4934000004458695726'/><link rel='alternate' type='text/html' href='http://wwwroboticsforall.blogspot.com/2012/02/how-to-read-file-attibutes.html' title='How to read file attibutes'/><author><name>Saman Kumara</name><uri>http://www.blogger.com/profile/02941696176127299736</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9058958302914764763.post-1093127368845669161</id><published>2011-05-17T23:34:00.000-07:00</published><updated>2011-06-06T09:36:08.630-07:00</updated><title type='text'>List of Tutorials</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cc0000;&quot;&gt;&lt;a href=&quot;http://wwwroboticsforall.blogspot.com/p/java-lessons-tutorial-helper.html&quot;&gt;Saving values of object in the Hard Disk Drive (Serialization)&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;a href=&quot;http://wwwroboticsforall.blogspot.com/p/java-lessons-tutorial-helper.html&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;http://wwwroboticsforall.blogspot.com/p/java-lessons-tutorial-helper.html&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cc0000;&quot;&gt;&lt;a href=&quot;http://wwwroboticsforall.blogspot.com/p/java-lessons-tutorial-helper.html&quot;&gt;Writing text file in java&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt; &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #6aa84f;&quot;&gt;&lt;a href=&quot;http://wwwroboticsforall.blogspot.com/p/java-lessons-tutorial-helper.html&quot;&gt;http://wwwroboticsforall.blogspot.com/p/java-lessons-tutorial-helper.html&lt;/a&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: black; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-weight: 800;&quot;&gt;&lt;u&gt;&lt;a href=&quot;http://wwwroboticsforall.blogspot.com/p/robotics-electronic.html&quot;&gt;Stepper Motor Driver&lt;/a&gt;&amp;nbsp;&lt;/u&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href=&quot;http://wwwroboticsforall.blogspot.com/p/robotics-electronic.html&quot;&gt;http://wwwroboticsforall.blogspot.com/p/robotics-electronic.html&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;color: black; font-size: medium; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;color: black; font-size: medium; font-weight: normal; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #6aa84f;&quot;&gt;&lt;b&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #38761d;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span id=&quot;goog_1397243511&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_1397243512&quot;&gt;&lt;/span&gt;&lt;a href=&quot;http://www.blogger.com/&quot;&gt;&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://wwwroboticsforall.blogspot.com/feeds/1093127368845669161/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wwwroboticsforall.blogspot.com/2011/05/list-of-tutorials_17.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9058958302914764763/posts/default/1093127368845669161'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9058958302914764763/posts/default/1093127368845669161'/><link rel='alternate' type='text/html' href='http://wwwroboticsforall.blogspot.com/2011/05/list-of-tutorials_17.html' title='List of Tutorials'/><author><name>Saman Kumara</name><uri>http://www.blogger.com/profile/02941696176127299736</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9058958302914764763.post-3932418422656496907</id><published>2011-05-08T07:11:00.000-07:00</published><updated>2011-05-21T10:00:48.659-07:00</updated><title type='text'>Making a Simple Java File.</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-size: large;&quot;&gt;1 Open text editor like notepad and type..&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;* &lt;b&gt;java is a case sensitive language. (type in notepad as shown as bellow(&lt;u&gt;Capital Simple Letters&lt;/u&gt;))&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1D7poDUv7gBYPzOrkCOaMXCAuNduqaMprJxXbzDxPbbpspNQ5TrQCvtAqwS1hhK4aZ1j9-4AzI-6sr8tmGzbKqC0WjZmx-7OiQnUtxtPccxj8EJScsp0LDxGGQbfdPO5VpV8-Gm611sg/s1600/frist.java.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;140&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1D7poDUv7gBYPzOrkCOaMXCAuNduqaMprJxXbzDxPbbpspNQ5TrQCvtAqwS1hhK4aZ1j9-4AzI-6sr8tmGzbKqC0WjZmx-7OiQnUtxtPccxj8EJScsp0LDxGGQbfdPO5VpV8-Gm611sg/s640/frist.java.jpg&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7Vo2HG0DTbr1GBIDXeuIkNXfWv9ZrgFDsR4y64dybpcIrrG2qA6rrElAg23OySWvK5gBEqANdtzhDQZpZZdAWXYGzjcRBlKLd9MpYTfeMhTnkf143ojCzYbiIJEMt4giUO-Xlp65gkOU/s1600/frist.java.save.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;513&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7Vo2HG0DTbr1GBIDXeuIkNXfWv9ZrgFDsR4y64dybpcIrrG2qA6rrElAg23OySWvK5gBEqANdtzhDQZpZZdAWXYGzjcRBlKLd9MpYTfeMhTnkf143ojCzYbiIJEMt4giUO-Xlp65gkOU/s640/frist.java.save.jpg&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;Then save your java file in hard disk named &lt;b&gt;myFristJava.java&lt;/b&gt; &amp;nbsp;(Ex: c:\java\myFristJava.java)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue; font-size: large;&quot;&gt;2 Open Command Prompt in your computer by (start-&amp;gt;run &amp;nbsp;and typing cmd) or (start-&amp;gt;all programs&amp;nbsp;accessories-&amp;gt;Command Prompt)&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgie0gWkmoIuscvC3ZDDOv7FTqFsOVmrkvTNHLMvXHEemyLtfXd3x1P00QCQN3QG1ImCaaK8UiJptKD7hfoBI7Q81KhqFbbLaxa9h8GTPZtm7JxNnl0wrIz2hjJJl52n3q-FE3E4f32JfI/s1600/frist.java.run.cmd.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;170&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgie0gWkmoIuscvC3ZDDOv7FTqFsOVmrkvTNHLMvXHEemyLtfXd3x1P00QCQN3QG1ImCaaK8UiJptKD7hfoBI7Q81KhqFbbLaxa9h8GTPZtm7JxNnl0wrIz2hjJJl52n3q-FE3E4f32JfI/s320/frist.java.run.cmd.jpg&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;Type in cmd .....&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: black;&quot;&gt;path=c:\program files\jdk1.7\bin &lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;b&gt;(this path must be the path of jdk installed on &amp;nbsp;your computer. )&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhM4kWqg199Q6eFG7crxajBpmRFV13El2ch6Lf1msxwnZokT2JAyf6ramfLT1a23B7-f9c4s7n6T-UXTWGeIq7HC8-ftKD3PVjZqqkMP9LkEc8KzFL1CyLByd0dNHoCTxOMsgCwQLjLVY/s1600/frist.java.cmd.pathset.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;94&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhM4kWqg199Q6eFG7crxajBpmRFV13El2ch6Lf1msxwnZokT2JAyf6ramfLT1a23B7-f9c4s7n6T-UXTWGeIq7HC8-ftKD3PVjZqqkMP9LkEc8KzFL1CyLByd0dNHoCTxOMsgCwQLjLVY/s640/frist.java.cmd.pathset.JPG&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;Now compiler is ready to compile your java file.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;then type on cmd...&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRAdUErrGFluPtBpth7h-n-LX5MebCHLfs4SvQJqCcei3L8bdluo_ErQds4-8SrhMBh8BA6bSdeLcO7QQ2dD0jbeRWWWog0ifzLHivEcjG6b64fkLyv11d5a0_gVFzg34mfOobK89eauE/s1600/frist.java.cmd.cd.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;138&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRAdUErrGFluPtBpth7h-n-LX5MebCHLfs4SvQJqCcei3L8bdluo_ErQds4-8SrhMBh8BA6bSdeLcO7QQ2dD0jbeRWWWog0ifzLHivEcjG6b64fkLyv11d5a0_gVFzg34mfOobK89eauE/s640/frist.java.cmd.cd.JPG&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;b&gt;&amp;nbsp;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;b&gt;&lt;/b&gt;&lt;b&gt;your java file&#39;s saved file path (Ex: cd java)for c:\java&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b style=&quot;background-color: black;&quot;&gt;javac myFristJava.java &lt;/b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGG1ZOPTtmkwIGsydd6cldb461otqRAxhegPcQuGYmDg8hQMK6rY-m8CSr77cZk5ZeVWwsvLEAkWjelJHX7Evdanw_BA6Va-1cVxlD-4pNcYtQ9iP9hd7-_81NFcC1kEqMkMSl5Rn6_uc/s1600/frist.java.cmd.javac.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;104&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGG1ZOPTtmkwIGsydd6cldb461otqRAxhegPcQuGYmDg8hQMK6rY-m8CSr77cZk5ZeVWwsvLEAkWjelJHX7Evdanw_BA6Va-1cVxlD-4pNcYtQ9iP9hd7-_81NFcC1kEqMkMSl5Rn6_uc/s640/frist.java.cmd.javac.JPG&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;This command line arg tells java compiler to compile the myFristJava.java file in c:\java folder.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: black;&quot;&gt;java myFristJava&lt;/span&gt;&lt;/b&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipOVlIa0ZRfzBkWvpUvp3che2jYdn0BdMMvWFahc_svJSyB7spbk0tIbYT9qCJ-ivEnMMkUJ2Erl3yvPXdvuuXr7I0V6gH6Yb49Hsz5VMygG5vJM2s7lCe5_AuxweT9OIt8J7IJLSrvXo/s1600/frist.java.cmd.java.run.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;104&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEipOVlIa0ZRfzBkWvpUvp3che2jYdn0BdMMvWFahc_svJSyB7spbk0tIbYT9qCJ-ivEnMMkUJ2Erl3yvPXdvuuXr7I0V6gH6Yb49Hsz5VMygG5vJM2s7lCe5_AuxweT9OIt8J7IJLSrvXo/s640/frist.java.cmd.java.run.JPG&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;This line tells to jvm(Java Virtual&amp;nbsp;Machine) to run your java program.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt; &amp;nbsp;If correctly compiled and run, prints&amp;nbsp;&lt;/b&gt;&amp;nbsp;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: black; font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Hellow. My name is saman.&lt;/span&gt; &lt;b&gt;in the command prompt.&lt;/b&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://wwwroboticsforall.blogspot.com/feeds/3932418422656496907/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wwwroboticsforall.blogspot.com/2011/05/making-simple-java-file.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9058958302914764763/posts/default/3932418422656496907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9058958302914764763/posts/default/3932418422656496907'/><link rel='alternate' type='text/html' href='http://wwwroboticsforall.blogspot.com/2011/05/making-simple-java-file.html' title='Making a Simple Java File.'/><author><name>Saman Kumara</name><uri>http://www.blogger.com/profile/02941696176127299736</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1D7poDUv7gBYPzOrkCOaMXCAuNduqaMprJxXbzDxPbbpspNQ5TrQCvtAqwS1hhK4aZ1j9-4AzI-6sr8tmGzbKqC0WjZmx-7OiQnUtxtPccxj8EJScsp0LDxGGQbfdPO5VpV8-Gm611sg/s72-c/frist.java.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9058958302914764763.post-9181318741118932668</id><published>2011-05-08T06:42:00.000-07:00</published><updated>2011-05-08T06:48:48.585-07:00</updated><title type='text'>Java Lessons.</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #0b5394; font-size: large;&quot;&gt;&lt;b&gt;Java is a high-level and&amp;nbsp;powerful Computer&amp;nbsp;programming language.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;* Java is used by &amp;nbsp;many websites,&amp;nbsp;business softwares and other application softwares.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;* Java is not a platform independent computer programming language.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: large;&quot;&gt;Ex:- There is a java .class file compiled on windows operating system. that .class file run on all widows operating systems and also run on java supported any other operating systems like linux, ubuntu OSs.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://wwwroboticsforall.blogspot.com/feeds/9181318741118932668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://wwwroboticsforall.blogspot.com/2011/05/java-lessons.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9058958302914764763/posts/default/9181318741118932668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9058958302914764763/posts/default/9181318741118932668'/><link rel='alternate' type='text/html' href='http://wwwroboticsforall.blogspot.com/2011/05/java-lessons.html' title='Java Lessons.'/><author><name>Saman Kumara</name><uri>http://www.blogger.com/profile/02941696176127299736</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>