<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;DEUNQ30yfip7ImA9WhRXEUk.&quot;"><id>tag:blogger.com,1999:blog-2282373639506926735</id><updated>2011-12-17T10:24:52.396-08:00</updated><category term="string" /><category term="c#" /><category term="ruby" /><category term="regex" /><category term="open office" /><category term="websites" /><category term="java" /><category term="logic" /><category term="python" /><category term="software" /><category term="jframe" /><category term="programming" /><category term="mathematics" /><category term="fun" /><category term="c++" /><category term="scjp" /><category term="netbeans" /><title>Tech BuZZ</title><subtitle type="html">Sharing is the Best way to get Knowledge :-)</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://srilankatechnology.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://srilankatechnology.blogspot.com/" /><author><name>rclakmal</name><uri>http://www.blogger.com/profile/09674008184777406412</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="24" height="32" src="http://3.bp.blogspot.com/_dRcWeP-eccg/SSqAm1ILmXI/AAAAAAAAABw/9P73Qf0ZQLc/S220/n1025233353_30220078_2346.jpg" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/blogspot/kTUJw" /><feedburner:info uri="blogspot/ktujw" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;CEEFSH45eCp7ImA9Wx5aGU4.&quot;"><id>tag:blogger.com,1999:blog-2282373639506926735.post-5135378733141348762</id><published>2010-11-16T08:50:00.000-08:00</published><updated>2010-11-16T10:36:59.020-08:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-11-16T10:36:59.020-08:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="java" /><category scheme="http://www.blogger.com/atom/ns#" term="netbeans" /><category scheme="http://www.blogger.com/atom/ns#" term="open office" /><title>Create OpenOffice Extensions ?</title><content type="html">&lt;div style="text-align: justify;"&gt;For the readers who are completely new to the phrase &lt;a href="http://en.wikipedia.org/wiki/OpenOffice.org"&gt;Open Office&lt;/a&gt; ,It is an  open source project with word processing,presentation,Spread Sheet + many more applications which  can be a good alternative to Microsoft Office package. It supports the &lt;a href="http://en.wikipedia.org/wiki/International_Organization_for_Standardization"&gt;ISO&lt;/a&gt;/&lt;a href="http://en.wikipedia.org/wiki/International_Electrotechnical_Commission"&gt;IEC &lt;/a&gt;standard &lt;a href="http://en.wikipedia.org/wiki/OpenDocument"&gt;OpenDocument &lt;/a&gt;Format (ODF) for data interchange as its  default file format. It is a community project where developers from all  the over the world contribute to improve product features or to add new  facilities.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;This post will give you a basic idea on how to become a part of this  wonderful project . I will be using Netbeans as my IDE and java as my  language.Still you need to install &lt;b&gt;NetBeans OpenOffice plug in &lt;/b&gt;as well  as the &lt;b&gt;OpenOffice SDK&lt;/b&gt;.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Setting up the Environment &lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;Download &lt;a href="http://netbeans.org/downloads/"&gt;Netbeans IDE&lt;/a&gt; and Install.&lt;/li&gt;
&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;Download the &lt;a href="http://download.openoffice.org/"&gt;OpenOffice &lt;/a&gt;Package and Install.&lt;/li&gt;
&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;Download the latest version of OO plugin within NetBeans by  clicking on Tools ---&amp;gt;  Plugins. You can find the plugin in the "Available  Plugins" section as  "OpenOffice.org API Plugin"(For the latest version of NetBeans (6.9) above method will not work.So download &lt;a href="http://api.openoffice.org/files/documents/22/4772/org-openoffice-extensions-2.0.7.alpha.nbm"&gt;this&lt;/a&gt; file and install it manually.)&lt;/li&gt;
&lt;/ul&gt;&lt;ul style="text-align: justify;"&gt;&lt;li&gt;Then download &lt;a href="http://download.openoffice.org/sdk/index.html"&gt;OO SDK&lt;/a&gt;&amp;nbsp; (I assume that you have already installed OpenOffice package ) and install it.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="text-align: justify;"&gt;Now We Are Ready to Rock and Roll !!&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span style="font-size: large;"&gt;&lt;b&gt;Creating your FIRST Project&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Restart the IDE .Then go to File---&amp;gt;New Project&amp;nbsp;&lt;b&gt; .&lt;/b&gt; Scroll down on New project window and find &lt;b&gt;OpenOffice.org&lt;/b&gt; entry.Click on it&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_dRcWeP-eccg/TOKtVkL9tkI/AAAAAAAAANQ/JESsQo0nePk/s1600/1289923827926.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="240" src="http://3.bp.blogspot.com/_dRcWeP-eccg/TOKtVkL9tkI/AAAAAAAAANQ/JESsQo0nePk/s320/1289923827926.png" width="320" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Select Project Type&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style="text-align: justify;"&gt;From the above window select the entry "&lt;b&gt;Open Office Add-on&lt;/b&gt;" .Click Next.&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Now It is time to give a unique project name to your work.I chose "MyProject".And click Next !&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_dRcWeP-eccg/TOKt82qBcCI/AAAAAAAAANU/_qJrCnEDJME/s1600/1289924041089.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/_dRcWeP-eccg/TOKt82qBcCI/AAAAAAAAANU/_qJrCnEDJME/s320/1289924041089.png" width="320" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Command Name&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style="text-align: justify;"&gt;The above is an important window where you need to specify your unique command. As an example when you click "save" menu item in an application Save window get opened. So you should give a command name to your task . hmmm Lets say command is "&lt;b&gt;Say Hello&lt;/b&gt; " . You can also insert icon images to your project using that icon column .For now, Lets just forget icons and click Next to proceed .&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_dRcWeP-eccg/TOKuKHXDh0I/AAAAAAAAANY/Rl3Y28az0dU/s1600/1289924096493.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="240" src="http://1.bp.blogspot.com/_dRcWeP-eccg/TOKuKHXDh0I/AAAAAAAAANY/Rl3Y28az0dU/s320/1289924096493.png" width="320" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Menu Name&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style="text-align: justify;"&gt;Alright now it's time to give a menu name . I gave "&lt;b&gt;My Menu&lt;/b&gt;" .After that proceed by clicking next !In the next window you will have Check Boxes for each Open Office application.(Etc Writer ,Calc) Select the &lt;b&gt;checkBox of the writer&lt;/b&gt;.This will add your add-on to the writer application.Then just press Finish! Your Friendly IDE will create the Project for you&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&amp;nbsp;Now it's time to play with some codes! Go to &lt;b&gt;SourcePackages----&amp;gt;com.example-------&amp;gt;MyProject.java&lt;/b&gt; file.Using the CTRL+F key combination find the method named "&lt;b&gt;dispatch&lt;/b&gt;" inside that java file .That method looks like this.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;pre&gt;&lt;pre&gt;public void dispatch( com.sun.star.util.URL aURL,
                           com.sun.star.beans.PropertyValue[] aArguments )
    {
         if ( aURL.Protocol.compareTo("com.example.myproject:") == 0 )
        {
            if ( aURL.Path.compareTo("Say Hello") == 0 )
            {
                //add your own code

                return;
            }
        }
    }&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;code&gt;&lt;/code&gt;&lt;code&gt; &lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Now replace that " // add your own code here" line with the code segment below.&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="fullpost"&gt;&lt;/span&gt;  &lt;span class="fullpost"&gt;&lt;/span&gt;  &lt;/div&gt;&lt;div style="text-align: justify;"&gt;String name = JOptionPane.showInputDialog("Enter your Name");  &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; JOptionPane.showMessageDialog(null, "Hello " + name + " How are you?", "Hello", JOptionPane.INFORMATION_MESSAGE);&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: justify;"&gt;&lt;/div&gt;&lt;table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style="text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_dRcWeP-eccg/TOKyMtpmTmI/AAAAAAAAANc/2mt2pbj7nG4/s1600/1289925066378.png" imageanchor="1" style="margin-left: auto; margin-right: auto;"&gt;&lt;img border="0" height="240" src="http://3.bp.blogspot.com/_dRcWeP-eccg/TOKyMtpmTmI/AAAAAAAAANc/2mt2pbj7nG4/s320/1289925066378.png" width="320" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class="tr-caption" style="text-align: center;"&gt;Right Click Menu&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;div style="text-align: justify;"&gt;Alright we are almost there now ! Right click on the project and find "&lt;b&gt;Deploy and Run Extension&lt;/b&gt; ...." menu item. And observe other two menu items Debug Extension and Create OXT . For now let us use the middle one &lt;b&gt;Deploy and run&lt;/b&gt; .This will run your extension on the Open Office package which is installed in your computer . After few steps Open Office will be automatically started . Open a Text Document .And you will see your Menu "&lt;b&gt;My Menu&lt;/b&gt;" in the top menu bar.&amp;nbsp;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;Click on it and it will have the "&lt;b&gt;Say Hello&lt;/b&gt;" entry .Voillaaaaaa !! You just created your first OO extension!!&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2282373639506926735-5135378733141348762?l=srilankatechnology.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Rj980fIYr44eQNuDeNvJIUSrYro/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Rj980fIYr44eQNuDeNvJIUSrYro/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Rj980fIYr44eQNuDeNvJIUSrYro/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Rj980fIYr44eQNuDeNvJIUSrYro/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/kTUJw/~4/XVMWxFxOFn8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://srilankatechnology.blogspot.com/feeds/5135378733141348762/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://srilankatechnology.blogspot.com/2010/11/create-openoffice-extensions.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2282373639506926735/posts/default/5135378733141348762?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2282373639506926735/posts/default/5135378733141348762?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/kTUJw/~3/XVMWxFxOFn8/create-openoffice-extensions.html" title="Create OpenOffice Extensions ?" /><author><name>rclakmal</name><uri>http://www.blogger.com/profile/09674008184777406412</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="24" height="32" src="http://3.bp.blogspot.com/_dRcWeP-eccg/SSqAm1ILmXI/AAAAAAAAABw/9P73Qf0ZQLc/S220/n1025233353_30220078_2346.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/_dRcWeP-eccg/TOKtVkL9tkI/AAAAAAAAANQ/JESsQo0nePk/s72-c/1289923827926.png" height="72" width="72" /><thr:total>2</thr:total><feedburner:origLink>http://srilankatechnology.blogspot.com/2010/11/create-openoffice-extensions.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0EBSHozcSp7ImA9Wx5SEks.&quot;"><id>tag:blogger.com,1999:blog-2282373639506926735.post-2033693879327656601</id><published>2010-07-16T01:32:00.000-07:00</published><updated>2010-08-08T05:14:19.489-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-08-08T05:14:19.489-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="java" /><category scheme="http://www.blogger.com/atom/ns#" term="scjp" /><title>9 Tips to success in SCJP</title><content type="html">&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;It's been a while I'm writing a new post .And I guess this one will be a really helpful to all the guys who are preparing them selves for the SCJP examination. Anyway your goal should be to learn the technology other than adding extra 4 letters to your resume.So here we Go !!!&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;First and Foremost&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;If you are a java professional who has been working with industry based java projects for a long time ,&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;DO NOT underestimate the exam&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;.This exam is looking for a human compiler rather than a good designer.So Take the exam Seriously :)&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Secondly&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Become a member of &lt;/span&gt;&lt;a href="http://www.javaranch.com/"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;JavaRanch&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;community and be active in &lt;/span&gt;&lt;a href="http://www.coderanch.com/forums/f-24/java-programmer-SCJP"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SCJP&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt; forum .At least read the new threads which are&amp;nbsp;being&amp;nbsp;posted every day.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;And thirdly&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Buy the &lt;/span&gt;&lt;a href="http://www.amazon.com/SCJP-Certified-Programmer-Java-310-065/dp/0071591060/ref=pd_bxgy_b_text_c"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;SCJP guide&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt; by Kathy sierra and Bert Bates.Or if you are a great fan of EBooks go for the ebook.&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Fourth Step&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Make your Goal&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;.Buy the voucher and fix the exam date. Then your mind will always alert you about the money you are going to miss if you waste time. At least give yourself &amp;nbsp;2 months for study when you fix the exam date . The exact date will depend on you.If you are new to j2se and can sacrifice 3 good hours in a &amp;nbsp;day for this exam I suggest you to get&amp;nbsp;at least&amp;nbsp;two months for studies.&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-weight: normal;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Fifth step&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="text-align: justify;"&gt;&lt;div style="margin-bottom: 0px; margin-left: 0px; margin-right: 0px; margin-top: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;First read the book one time completely ,doing all the &amp;nbsp;SELF TESTS, going though all the &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Two Minute Drills&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt; ,preparing a good &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;short note&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt; for your self.And Code all the examples using a text editor(&lt;/span&gt;&lt;a href="http://notepad-plus-plus.org/"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Notepad++&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;) .&lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Please avoid all those IDEs including Netbeans and Eclipse.&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;And write lot of codes changing the same example in various ways.Spent good 15 minutes with a example which you couldn't answer at&amp;nbsp;first&amp;nbsp;time.&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;And the Sixth is&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Focus on the&amp;nbsp;areas&amp;nbsp;where you score low marks on self tests.And read those&amp;nbsp;chapters&amp;nbsp;one more time.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Now its time to test your self .Find some good mock exams. You can find some really good mock exams on &lt;/span&gt;&lt;a href="http://www.javaranch.com/"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;javaranch&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;specially &lt;/span&gt;&lt;a href="http://www.examlab.tk/"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;ExamLab&lt;/span&gt;&lt;/a&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt; is a great tool which&amp;nbsp;toughens&amp;nbsp;you for the real exam.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Seventh will be&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;When you review the Mock exam results &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;find your weaknesses&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt; and Read K&amp;amp;B book again for those chapters.And Loop through step 7 and 8 for&amp;nbsp;at-least&amp;nbsp;a week .&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Eighth&amp;nbsp;step&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Day Before Exam-Read all the Two Minute Drills sections in the SCJP book.Go through all the steps in the book which tells you how to face the real exam.(In the first few pages). It tells you&amp;nbsp;different&amp;nbsp;methodologies&amp;nbsp;&amp;nbsp;to answer&amp;nbsp;different&amp;nbsp;questions.And Please make sure to sleep early .At least get a sleep of 6 hours.&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;And the last will be&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;Arrive one hour early to the exam venue and go through your short note(areas where you have some doubts) once again.And &lt;/span&gt;&lt;b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;be calm and cool for 10 or 15 minute&lt;/span&gt;&lt;/b&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&amp;nbsp;without doing anything.Face the exam with confidence using all the tips you learned.&lt;/span&gt;&lt;/div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;&lt;span class="Apple-style-span" style="font-family: inherit;"&gt;And Finally Good Luck to Everyone who are going to face the exam!!&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/2282373639506926735-2033693879327656601?l=srilankatechnology.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/IuFk72_V1zgf3FI0ufAR_uoYM6o/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IuFk72_V1zgf3FI0ufAR_uoYM6o/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/IuFk72_V1zgf3FI0ufAR_uoYM6o/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/IuFk72_V1zgf3FI0ufAR_uoYM6o/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/kTUJw/~4/83YIeb_VDK0" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://srilankatechnology.blogspot.com/feeds/2033693879327656601/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://srilankatechnology.blogspot.com/2010/07/10-tips-to-success-in-scjp.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2282373639506926735/posts/default/2033693879327656601?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2282373639506926735/posts/default/2033693879327656601?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/kTUJw/~3/83YIeb_VDK0/10-tips-to-success-in-scjp.html" title="9 Tips to success in SCJP" /><author><name>rclakmal</name><uri>http://www.blogger.com/profile/09674008184777406412</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="24" height="32" src="http://3.bp.blogspot.com/_dRcWeP-eccg/SSqAm1ILmXI/AAAAAAAAABw/9P73Qf0ZQLc/S220/n1025233353_30220078_2346.jpg" /></author><thr:total>0</thr:total><feedburner:origLink>http://srilankatechnology.blogspot.com/2010/07/10-tips-to-success-in-scjp.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CEECR3k4eSp7ImA9WxFVF0Q.&quot;"><id>tag:blogger.com,1999:blog-2282373639506926735.post-3506024659524248489</id><published>2010-06-17T09:36:00.000-07:00</published><updated>2010-06-17T09:37:46.731-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-17T09:37:46.731-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="fun" /><category scheme="http://www.blogger.com/atom/ns#" term="mathematics" /><category scheme="http://www.blogger.com/atom/ns#" term="logic" /><title>A logic problem: Who is the killer??? (Do you Have a Mr:Sherlock inside you?)</title><content type="html">&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;For most of the time in our life we are busy with our day today works.May be with our studies or with our job. So here &amp;nbsp;I present you a small problem which is not related to any of those,but will need some brain cells to provide the correct &amp;nbsp;answer.So here goes the Adventure.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: small;"&gt;&lt;span class="Apple-style-span" style="font-size: 13px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/_dRcWeP-eccg/TBpJP5pNHMI/AAAAAAAAALk/NaAPtc2_12c/s1600/stock-vector-cartoon-train-ride-sun-kids-wave-from-a-train-31590331.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;b&gt;&lt;img border="0" src="http://1.bp.blogspot.com/_dRcWeP-eccg/TBpJP5pNHMI/AAAAAAAAALk/NaAPtc2_12c/s320/stock-vector-cartoon-train-ride-sun-kids-wave-from-a-train-31590331.jpg" /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;There were five people travelling in a train and they are named A,B,C,D and E. Here A,C and E are men and B,D are women. Suddenly train passed&amp;nbsp;through&amp;nbsp;a tunnel and when it emerges E was found dead.&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;And a detective came to the place and talk to other for passengers to get&amp;nbsp;evidence.This is the result he got after talking to remaining four people.&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;b&gt;A Said&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;b&gt;&lt;/b&gt;&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;I'm innocent : B was talking to E when the train was passing though the tunnel&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;b&gt;B Said&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;I'm innocent : I was not talking to E when the train was passing through the tunnel.&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;b&gt;C Said&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;I'm innocent : D&amp;nbsp;committed&amp;nbsp;the murder.&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;b&gt;D said&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;I'm innocent&amp;nbsp;:One of the men&amp;nbsp;committed&amp;nbsp;the murder.&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;You can see these four people are making eight&amp;nbsp;statements,two by each person.And the detective&amp;nbsp;could&amp;nbsp;find out that &lt;span class="Apple-style-span" style="color: blue;"&gt;four of these&amp;nbsp;statements&amp;nbsp;are true.&amp;nbsp;And four of them are false&lt;/span&gt;.But he doesn't know which one of them are true and which are false.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;And he also got to know that &lt;span class="Apple-style-span" style="color: blue;"&gt;only ONE&lt;/span&gt; person did the crime.&lt;/span&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;Assuming you are the detective try to find out the killer?&lt;/span&gt;&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&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; &lt;a href="http://3.bp.blogspot.com/_dRcWeP-eccg/TBpN5ftdraI/AAAAAAAAAL0/y9jZzDCGd4w/s1600/sherlock.gif" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" src="http://3.bp.blogspot.com/_dRcWeP-eccg/TBpN5ftdraI/AAAAAAAAAL0/y9jZzDCGd4w/s320/sherlock.gif" width="266" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: left;"&gt;These are small logic&amp;nbsp;problems&amp;nbsp;which can be easily solved by doing some rough works.And these kind of problems are belong to the area called discrete mathematics .Try To Answer without help .I will post my answer Later. :).&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style="-webkit-border-horizontal-spacing: 2px; -webkit-border-vertical-spacing: 2px;"&gt;&lt;span class="Apple-style-span" style="font-family: Georgia, 'Times New Roman', serif;"&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/2282373639506926735-3506024659524248489?l=srilankatechnology.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/zxXlw9nxCAPotfYmuBbX22xL3NQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zxXlw9nxCAPotfYmuBbX22xL3NQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/zxXlw9nxCAPotfYmuBbX22xL3NQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/zxXlw9nxCAPotfYmuBbX22xL3NQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/kTUJw/~4/pqBt3HQbidk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://srilankatechnology.blogspot.com/feeds/3506024659524248489/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://srilankatechnology.blogspot.com/2010/06/logic-problem-who-is-killer-do-you-have.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2282373639506926735/posts/default/3506024659524248489?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2282373639506926735/posts/default/3506024659524248489?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/kTUJw/~3/pqBt3HQbidk/logic-problem-who-is-killer-do-you-have.html" title="A logic problem: Who is the killer??? (Do you Have a Mr:Sherlock inside you?)" /><author><name>rclakmal</name><uri>http://www.blogger.com/profile/09674008184777406412</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="24" height="32" src="http://3.bp.blogspot.com/_dRcWeP-eccg/SSqAm1ILmXI/AAAAAAAAABw/9P73Qf0ZQLc/S220/n1025233353_30220078_2346.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_dRcWeP-eccg/TBpJP5pNHMI/AAAAAAAAALk/NaAPtc2_12c/s72-c/stock-vector-cartoon-train-ride-sun-kids-wave-from-a-train-31590331.jpg" height="72" width="72" /><thr:total>2</thr:total><feedburner:origLink>http://srilankatechnology.blogspot.com/2010/06/logic-problem-who-is-killer-do-you-have.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0YCR348cCp7ImA9WxFVFk8.&quot;"><id>tag:blogger.com,1999:blog-2282373639506926735.post-4816071636062824827</id><published>2010-06-13T10:58:00.000-07:00</published><updated>2010-06-15T12:12:46.078-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-15T12:12:46.078-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="ruby" /><category scheme="http://www.blogger.com/atom/ns#" term="c++" /><category scheme="http://www.blogger.com/atom/ns#" term="java" /><category scheme="http://www.blogger.com/atom/ns#" term="fun" /><category scheme="http://www.blogger.com/atom/ns#" term="software" /><category scheme="http://www.blogger.com/atom/ns#" term="python" /><category scheme="http://www.blogger.com/atom/ns#" term="programming" /><category scheme="http://www.blogger.com/atom/ns#" term="c#" /><category scheme="http://www.blogger.com/atom/ns#" term="websites" /><title>Do you want to learn Programming ? Here are Some Cool Websites</title><content type="html">"Practice Makes Perfect "  That is a golden quote when it comes to programming .And of course you need  dedication and desire in What you are doing. So Best way to learn programming is to learn it interactively than reading a Book on "How to Program " without touching the keyboard.&lt;br /&gt;
&lt;br /&gt;
So I thought of providing some really nice and COOL websites with lot of challenges  where you can practice yourself if you are already familiar with a language or you can learn a specific language by dealing with them.And guys belong to the first group ,why don't you try these sites with another language which you dreamed a lot of learning.&lt;br /&gt;
&lt;br /&gt;
So Here it goes&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;#5&lt;/span&gt;&lt;/span&gt;&lt;a href="http://www.pythonchallenge.com/"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt; Python Challenge &lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_dRcWeP-eccg/TBTO0G5ps7I/AAAAAAAAAKg/6X6dL121SIk/s1600/logo.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_dRcWeP-eccg/TBTO0G5ps7I/AAAAAAAAAKg/6X6dL121SIk/s320/logo.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;This one is great tool if you want to learn python.And Guys who are already familiar with python test your skills.And the most interesting thing about this is the way they have presented their challenges.Its a really interactive site. If you visit once and click the start &lt;a href="http://www.pythonchallenge.com/pc/def/0.html"&gt;Start Challenge&lt;/a&gt; you will find it really hard to stop with proceeding :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;#4 &lt;/span&gt;&lt;/span&gt;&lt;a href="http://rubyquiz.com/"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Ruby Quiz &lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/_dRcWeP-eccg/TBUQ4DgXxwI/AAAAAAAAAKo/OiI31fCuHwU/s1600/ruby_quiz_logo.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_dRcWeP-eccg/TBUQ4DgXxwI/AAAAAAAAAKo/OiI31fCuHwU/s320/ruby_quiz_logo.jpg" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
Next One is set of challenges using Ruby . But here you can try these challenges&lt;br /&gt;
with a any programming language you know(You name it what ever C++.C,Java,C# even assembly if you are assembly geek :) &amp;nbsp; )  .This site contains both non math problems and math problems.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;#3&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://acm.timus.ru/"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Timus Online Judge &lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://3.bp.blogspot.com/_dRcWeP-eccg/TBUTMmOZzcI/AAAAAAAAAKw/VbBoPL-xlWY/s1600/usu-summer.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://3.bp.blogspot.com/_dRcWeP-eccg/TBUTMmOZzcI/AAAAAAAAAKw/VbBoPL-xlWY/s320/usu-summer.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div&gt;This is a wonderful place for anyone to start from the beginning .This contains problems where you can improve yourself from step to step(Though it doesn't have a good UI in the website problems are attractive ).Try it Too.!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/_dRcWeP-eccg/TBUVJlbGsWI/AAAAAAAAAK4/XQbLuI3v29Q/s1600/3-topcoder_logo_transparent-buff.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" src="http://4.bp.blogspot.com/_dRcWeP-eccg/TBUVJlbGsWI/AAAAAAAAAK4/XQbLuI3v29Q/s320/3-topcoder_logo_transparent-buff.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;#2&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://topcoder.com/home/"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;TopCoder&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;Alright ! If your are looking for competitions in programming ,&lt;/div&gt;&lt;div&gt;This is a wonderful place .This site has weekly competitions in which you can participate And WIN PRIZES!!! Voilaaa!!&lt;/div&gt;&lt;div&gt;So Try it and share the prize with me :)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;#1&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://projecteuler.net/index.php?section=about"&gt;&lt;span class="Apple-style-span" style="font-size: x-large;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Project Euler&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_dRcWeP-eccg/TBUWK0NC-gI/AAAAAAAAALA/3-AXzxPZuPw/s1600/euler_main.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="200" src="http://1.bp.blogspot.com/_dRcWeP-eccg/TBUWK0NC-gI/AAAAAAAAALA/3-AXzxPZuPw/s200/euler_main.jpg" width="171" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;And Finally ! My favorite one.But I have to tell you .This one is really mathematical based.So you won't find any problem without Maths :D .(At least&amp;nbsp;I &amp;nbsp;didn't find any problem without Maths..Even though directly Not Maths .All the problems are Mathematical based )But Maths means FUN !!! Try it .Use any language. You can use tools like MATLAB,Mathematica in some problems .They DO NOT expect any source code,but only an integer answer. &lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;These were some my favorites sites.But Still a novice in them. But thought of sharing these with you so that it can help some other guys who are craving for challenges.And here are some other sites and forums which will be really helpful for a learner as well as professionals . &lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://stackoverflow.com/"&gt;Stack OverFlow&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.javaranch.com/"&gt;Java Ranch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.codeguru.com/"&gt;Code Guru&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div&gt;So That's it for today.Have fun with these sites.And Happy Coding !&lt;br /&gt;
&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/_dRcWeP-eccg/TBUcI0dHNLI/AAAAAAAAALI/Q-1kG2kI-EY/s1600/software-dev.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="300" src="http://2.bp.blogspot.com/_dRcWeP-eccg/TBUcI0dHNLI/AAAAAAAAALI/Q-1kG2kI-EY/s400/software-dev.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2282373639506926735-4816071636062824827?l=srilankatechnology.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6_vWNplAhcd3y3r8y0dc4qSPpqg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6_vWNplAhcd3y3r8y0dc4qSPpqg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6_vWNplAhcd3y3r8y0dc4qSPpqg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6_vWNplAhcd3y3r8y0dc4qSPpqg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/kTUJw/~4/eL9OOGoLlnU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://srilankatechnology.blogspot.com/feeds/4816071636062824827/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://srilankatechnology.blogspot.com/2010/06/do-you-want-to-learn-programming-here.html#comment-form" title="4 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2282373639506926735/posts/default/4816071636062824827?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2282373639506926735/posts/default/4816071636062824827?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/kTUJw/~3/eL9OOGoLlnU/do-you-want-to-learn-programming-here.html" title="Do you want to learn Programming ? Here are Some Cool Websites" /><author><name>rclakmal</name><uri>http://www.blogger.com/profile/09674008184777406412</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="24" height="32" src="http://3.bp.blogspot.com/_dRcWeP-eccg/SSqAm1ILmXI/AAAAAAAAABw/9P73Qf0ZQLc/S220/n1025233353_30220078_2346.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/_dRcWeP-eccg/TBTO0G5ps7I/AAAAAAAAAKg/6X6dL121SIk/s72-c/logo.jpg" height="72" width="72" /><thr:total>4</thr:total><feedburner:origLink>http://srilankatechnology.blogspot.com/2010/06/do-you-want-to-learn-programming-here.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkYHRX48fip7ImA9WxFVFE8.&quot;"><id>tag:blogger.com,1999:blog-2282373639506926735.post-4726807826041533196</id><published>2010-05-02T08:35:00.000-07:00</published><updated>2010-06-13T04:22:14.076-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-13T04:22:14.076-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="java" /><category scheme="http://www.blogger.com/atom/ns#" term="regex" /><category scheme="http://www.blogger.com/atom/ns#" term="string" /><title>Java : Reading words from a File ?</title><content type="html">When I was developing an algorithm for one of my assignment I had to read a String from a file and then separate all the words in that String .I tried to implement it using several methods .But most of them were really annoying !! :( . So after Googling for sometime I found out a nice method using the &lt;span style="font-weight: bold;"&gt;Regex&lt;/span&gt; facility in Java :)&lt;br /&gt;
&lt;br /&gt;
I hope you are familiar with how to read a String from a file .:) Are you ? Oh! You are NOT :(&lt;br /&gt;
Then Look at this .&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
String str;&lt;br /&gt;
BufferedReader in = new BufferedReader(new FileReader(YOUR FILE PATH HERE));&lt;br /&gt;
while ((str = in.readLine()) != null) {&lt;br /&gt;
YOU CAN PROCESS YOUR STRING HERE&lt;br /&gt;
}&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
So here what kind of process we do ? We just separate all the words in that String.OK&lt;br /&gt;
So you know String class have a method as &lt;span style="font-weight: bold;"&gt;split&lt;/span&gt;.We can use it here.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
String[] wordArray=str.split(" ");&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;split&lt;/span&gt; method returns a array of String .So by the above line we can separate all the words which have a SPACE between them .But that is not enough ...Is it ? What will happen to the words separated by commas,question mark ...etc (all the punctuations ).&lt;br /&gt;
&lt;br /&gt;
So this is where &lt;span style="font-weight: bold;"&gt;Regex&lt;/span&gt; helps us out.It has some pre-defined Strings which we can use in split method .String &lt;span style="font-weight: bold;"&gt;"\\W"&lt;/span&gt; stands for all the &lt;span style="font-weight: bold;"&gt;NON WORD CHARTERERs &lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
String[] wordArray=str.split("\\W");&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
The above code will give the exact output you need.Then you can use that String array for further process. Happy Coding !!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2282373639506926735-4726807826041533196?l=srilankatechnology.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KobY3Q_eQ3ojK7NDPU3GU8e1Tzo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KobY3Q_eQ3ojK7NDPU3GU8e1Tzo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/KobY3Q_eQ3ojK7NDPU3GU8e1Tzo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KobY3Q_eQ3ojK7NDPU3GU8e1Tzo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/kTUJw/~4/uWyQdhEZ-ys" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://srilankatechnology.blogspot.com/feeds/4726807826041533196/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://srilankatechnology.blogspot.com/2010/05/java-reading-words-from-file.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2282373639506926735/posts/default/4726807826041533196?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2282373639506926735/posts/default/4726807826041533196?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/kTUJw/~3/uWyQdhEZ-ys/java-reading-words-from-file.html" title="Java : Reading words from a File ?" /><author><name>rclakmal</name><uri>http://www.blogger.com/profile/09674008184777406412</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="24" height="32" src="http://3.bp.blogspot.com/_dRcWeP-eccg/SSqAm1ILmXI/AAAAAAAAABw/9P73Qf0ZQLc/S220/n1025233353_30220078_2346.jpg" /></author><thr:total>2</thr:total><feedburner:origLink>http://srilankatechnology.blogspot.com/2010/05/java-reading-words-from-file.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DEEARnc-fyp7ImA9WxFVEkU.&quot;"><id>tag:blogger.com,1999:blog-2282373639506926735.post-7079206659775843264</id><published>2010-02-08T06:21:00.000-08:00</published><updated>2010-06-11T13:04:07.957-07:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2010-06-11T13:04:07.957-07:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="java" /><category scheme="http://www.blogger.com/atom/ns#" term="jframe" /><category scheme="http://www.blogger.com/atom/ns#" term="netbeans" /><title>How to add a picture to your JFrame in Netbeans?</title><content type="html">When you develop applications using NetBeans how often you use JFrames? Occasionally you may want to add a picture to your JFrame(May be the main frame of your application.And you want to add your application logo on it).So this is how you are going to do that.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;span style="font-weight: bold;"&gt;Creating the JFrame(For Novices)&lt;/span&gt;&amp;gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
First open your Netbeans application .Then go to &lt;span style="font-weight: bold;"&gt;File&lt;/span&gt; and select &lt;span style="font-weight: bold;"&gt;New Project&lt;/span&gt;.Following dialog box will appear.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://1.bp.blogspot.com/_dRcWeP-eccg/S3AjtmLUmTI/AAAAAAAAAIM/1QngDjBTQNQ/s1600-h/Blog1.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5435884016485308722" src="http://1.bp.blogspot.com/_dRcWeP-eccg/S3AjtmLUmTI/AAAAAAAAAIM/1QngDjBTQNQ/s320/Blog1.jpg" style="cursor: hand; cursor: pointer; display: block; height: 240px; margin: 0 10px 10px 0; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
From that dialog box select Java----&amp;gt; Java Application (as we are going to build a desktop application) and finally press Next..If you are successful the another dialog box will appear to enter  your project name.And after pressing next it will lead you to your new project.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://2.bp.blogspot.com/_dRcWeP-eccg/S3AlTDO3zDI/AAAAAAAAAIU/2tdipaq52mE/s1600-h/Blog1.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5435885759451614258" src="http://2.bp.blogspot.com/_dRcWeP-eccg/S3AlTDO3zDI/AAAAAAAAAIU/2tdipaq52mE/s320/Blog1.jpg" style="cursor: hand; cursor: pointer; display: block; height: 240px; margin: 0 10px 10px 0; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Then from your project go to &lt;span style="font-weight: bold;"&gt;Source Packages&lt;/span&gt; ,right click on your &lt;span style="font-weight: bold;"&gt;project name&lt;/span&gt; ,select New ,then select &lt;span style="font-weight: bold;"&gt;JFrame Form&lt;/span&gt;.And enter a preferred name for your JFrame in the dialog box ,and press Next and you have successfully created your JFrame.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://1.bp.blogspot.com/_dRcWeP-eccg/S3AmezkD6jI/AAAAAAAAAIc/rwq3x0sQjjk/s1600-h/Blog1.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5435887060915579442" src="http://1.bp.blogspot.com/_dRcWeP-eccg/S3AmezkD6jI/AAAAAAAAAIc/rwq3x0sQjjk/s320/Blog1.jpg" style="cursor: hand; cursor: pointer; display: block; height: 240px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style="font-weight: bold;"&gt;&lt;u&gt;Adding the Picture&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Go to the &lt;span style="font-weight: bold;"&gt;palette&lt;/span&gt; and then go to &lt;span style="font-weight: bold;"&gt;Swing Controls&lt;/span&gt;.Here you will find Label Component.Drag and drop the Label component to the JFrame.And it will give you something like this &lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://3.bp.blogspot.com/_dRcWeP-eccg/S3An5JawNsI/AAAAAAAAAIk/kAuOZHNjl7Q/s1600-h/Blog1.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5435888612970346178" src="http://3.bp.blogspot.com/_dRcWeP-eccg/S3An5JawNsI/AAAAAAAAAIk/kAuOZHNjl7Q/s320/Blog1.jpg" style="cursor: hand; cursor: pointer; display: block; height: 240px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Then right click on the Label and select &lt;span style="font-weight: bold;"&gt;Properties&lt;/span&gt; from the drop down menu.And Locate&lt;span style="font-weight: bold;"&gt; Icon&lt;/span&gt; property and press the white button in that row which will lead you to a new dialog box.&lt;br /&gt;
&lt;br /&gt;
Select &lt;span style="font-weight: bold;"&gt;External Image&lt;/span&gt;.Then provide the path to the image and finally press &lt;span style="font-weight: bold;"&gt;import to the project&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://1.bp.blogspot.com/_dRcWeP-eccg/S3A1juk8LuI/AAAAAAAAAI0/Byz5ZqvsDWU/s1600-h/Blog1.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5435903638150852322" src="http://1.bp.blogspot.com/_dRcWeP-eccg/S3A1juk8LuI/AAAAAAAAAI0/Byz5ZqvsDWU/s320/Blog1.jpg" style="cursor: hand; cursor: pointer; display: block; height: 240px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Then resize the image as you want and after you are done right click on the JFrame file in the Source packages and select run.And you can get the required output !&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://3.bp.blogspot.com/_dRcWeP-eccg/S3A3NEugjUI/AAAAAAAAAI8/h49PXPJN8lc/s1600-h/Blog3.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5435905447982828866" src="http://3.bp.blogspot.com/_dRcWeP-eccg/S3A3NEugjUI/AAAAAAAAAI8/h49PXPJN8lc/s320/Blog3.jpg" style="cursor: hand; cursor: pointer; display: block; height: 240px; margin: 0px auto 10px; text-align: center; width: 320px;" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2282373639506926735-7079206659775843264?l=srilankatechnology.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/yZMOFztVc1MhzcBh0ayNMTOY9a4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yZMOFztVc1MhzcBh0ayNMTOY9a4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/yZMOFztVc1MhzcBh0ayNMTOY9a4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yZMOFztVc1MhzcBh0ayNMTOY9a4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/blogspot/kTUJw/~4/Py5Ej4IgLAU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://srilankatechnology.blogspot.com/feeds/7079206659775843264/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://srilankatechnology.blogspot.com/2010/02/how-to-add-picture-to-your-jframe-in.html#comment-form" title="13 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/2282373639506926735/posts/default/7079206659775843264?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/2282373639506926735/posts/default/7079206659775843264?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/blogspot/kTUJw/~3/Py5Ej4IgLAU/how-to-add-picture-to-your-jframe-in.html" title="&lt;h5&gt;How to add a picture to your JFrame in Netbeans?&lt;/h5&gt;" /><author><name>rclakmal</name><uri>http://www.blogger.com/profile/09674008184777406412</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="24" height="32" src="http://3.bp.blogspot.com/_dRcWeP-eccg/SSqAm1ILmXI/AAAAAAAAABw/9P73Qf0ZQLc/S220/n1025233353_30220078_2346.jpg" /></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/_dRcWeP-eccg/S3AjtmLUmTI/AAAAAAAAAIM/1QngDjBTQNQ/s72-c/Blog1.jpg" height="72" width="72" /><thr:total>13</thr:total><feedburner:origLink>http://srilankatechnology.blogspot.com/2010/02/how-to-add-picture-to-your-jframe-in.html</feedburner:origLink></entry></feed>

