<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-5249394921413566840</atom:id><lastBuildDate>Fri, 13 Sep 2024 21:48:17 +0000</lastBuildDate><title>Java Notes</title><description></description><link>http://j2se-notes.blogspot.com/</link><managingEditor>noreply@blogger.com (laksitha)</managingEditor><generator>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:subtitle/><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5249394921413566840.post-1086937550701726864</guid><pubDate>Wed, 06 Jul 2011 10:19:00 +0000</pubDate><atom:updated>2011-07-06T03:22:49.201-07:00</atom:updated><title>Connect gmail with java application</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdHF7bTH8UFrAPLLFYwBPtD_ZOaoG3QLTId41cVrh7zQ3asHocOSNvHJ4ypwuj-CvZlPGRHJ9YGjOtW4sLt_4D1g1LzjyESMWQFUkzDV4GsJr2hcuQB4HDk0PT0dFaniKpHpaqLHjKPPw/s1600/email.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="279" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdHF7bTH8UFrAPLLFYwBPtD_ZOaoG3QLTId41cVrh7zQ3asHocOSNvHJ4ypwuj-CvZlPGRHJ9YGjOtW4sLt_4D1g1LzjyESMWQFUkzDV4GsJr2hcuQB4HDk0PT0dFaniKpHpaqLHjKPPw/s320/email.bmp" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
This is done by using pop3 (&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial,Helvetica,FreeSans,Luxi-sans,'Nimbus Sans L',sans-serif; font-size: 12px;"&gt;Post Office Protocol&lt;/span&gt;&lt;/span&gt;).&lt;span class="Apple-style-span" style="border-collapse: separate; color: black; font-family: 'Times New Roman'; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"&gt;&lt;span class="Apple-style-span" style="font-family: Arial,Helvetica,FreeSans,Luxi-sans,'Nimbus Sans L',sans-serif; font-size: 12px;"&gt;&lt;span class="Apple-converted-space"&gt; &lt;/span&gt;POP is the mechanism most people on the Internet use to get their mail. &lt;/span&gt;&lt;/span&gt;Click &lt;a href="http://download1444.mediafire.com/tv8x3k11ricg/hhbk83smv7av772/gmailapp.rar"&gt;here&lt;/a&gt; to download sample code.You can open &amp;amp; run it with netbeans.</description><link>http://j2se-notes.blogspot.com/2011/07/connect-gmail-with-java-application.html</link><author>noreply@blogger.com (laksitha)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdHF7bTH8UFrAPLLFYwBPtD_ZOaoG3QLTId41cVrh7zQ3asHocOSNvHJ4ypwuj-CvZlPGRHJ9YGjOtW4sLt_4D1g1LzjyESMWQFUkzDV4GsJr2hcuQB4HDk0PT0dFaniKpHpaqLHjKPPw/s72-c/email.bmp" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5249394921413566840.post-2494423237046046286</guid><pubDate>Wed, 06 Jul 2011 06:33:00 +0000</pubDate><atom:updated>2011-07-05T23:33:46.631-07:00</atom:updated><title>Shorthand Assignment Statement</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMW_ugS2ZUbCOuxWPhi9S5udWkERggujx6yN_upp8g1AUn6WOH97JfmhoetWlfbEcqEPT5rx2gErElQmkZopdPBDgSpuDUvPXQcmp3ecIaowSrEnNhfnGMK6RbL174rjKDdVEWJDBu5Yw/s1600/table.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="201" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMW_ugS2ZUbCOuxWPhi9S5udWkERggujx6yN_upp8g1AUn6WOH97JfmhoetWlfbEcqEPT5rx2gErElQmkZopdPBDgSpuDUvPXQcmp3ecIaowSrEnNhfnGMK6RbL174rjKDdVEWJDBu5Yw/s400/table.bmp" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;</description><link>http://j2se-notes.blogspot.com/2011/07/shorthand-assignment-statement.html</link><author>noreply@blogger.com (laksitha)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiMW_ugS2ZUbCOuxWPhi9S5udWkERggujx6yN_upp8g1AUn6WOH97JfmhoetWlfbEcqEPT5rx2gErElQmkZopdPBDgSpuDUvPXQcmp3ecIaowSrEnNhfnGMK6RbL174rjKDdVEWJDBu5Yw/s72-c/table.bmp" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5249394921413566840.post-1935919441915058831</guid><pubDate>Wed, 06 Jul 2011 05:33:00 +0000</pubDate><atom:updated>2011-07-05T22:33:50.242-07:00</atom:updated><title>Define constant in java</title><description>class Example3&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;&amp;nbsp; static final double KMS_PER_MILE = 1.609;&amp;nbsp;&amp;nbsp;&amp;nbsp; //way of define constant&lt;br /&gt;
&amp;nbsp;&amp;nbsp; static final double YARD_PER_MILE = 1/1760.0;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; public static void main(String args[])&lt;br /&gt;
&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; double kilo;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; int yards = 385;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; int miles =26;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; kilo = (((YARD_PER_MILE*yards)+miles)*KMS_PER_MILE);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; System.out.println("Kilomters ="+kilo+"Km");&lt;br /&gt;
&amp;nbsp; }&lt;br /&gt;
}</description><link>http://j2se-notes.blogspot.com/2011/07/define-constant-in-java.html</link><author>noreply@blogger.com (laksitha)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5249394921413566840.post-5521998850961368400</guid><pubDate>Wed, 06 Jul 2011 05:26:00 +0000</pubDate><atom:updated>2011-07-12T03:11:23.115-07:00</atom:updated><title>How to print a triangle in java</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHkScsSNvmRFhpVDAM08xHCm1UvoeSKUK_oheFcjYJfE3dPsLQAhWlcVGAXTe6yL_7PQBEqGLNF2jrMnFfBeWFCJyULmVsZ0RVGKGTDyd1WgXCjnE7tVix2RmHLpyk__IH_91B6DsBD7k/s1600/fff.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="138" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHkScsSNvmRFhpVDAM08xHCm1UvoeSKUK_oheFcjYJfE3dPsLQAhWlcVGAXTe6yL_7PQBEqGLNF2jrMnFfBeWFCJyULmVsZ0RVGKGTDyd1WgXCjnE7tVix2RmHLpyk__IH_91B6DsBD7k/s320/fff.bmp" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjL6rFe-Hz_lOK12gucBXjYxG7qSIgCEhXNRcgOTEUHppsUnhqGq3AHC_pPy574isprLHkj7H4BlQkWxa99YkHbcJCsIUNEbwFI9zdDopR8jBBkq11ALmRI78teVwzPOBS7yMKvGMI5MgY/s1600/c111.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="262" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjL6rFe-Hz_lOK12gucBXjYxG7qSIgCEhXNRcgOTEUHppsUnhqGq3AHC_pPy574isprLHkj7H4BlQkWxa99YkHbcJCsIUNEbwFI9zdDopR8jBBkq11ALmRI78teVwzPOBS7yMKvGMI5MgY/s320/c111.bmp" width="320" /&gt;&amp;nbsp;&lt;/a&gt;&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;&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;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&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;</description><link>http://j2se-notes.blogspot.com/2011/07/how-to-print-triangle-in-java.html</link><author>noreply@blogger.com (laksitha)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHkScsSNvmRFhpVDAM08xHCm1UvoeSKUK_oheFcjYJfE3dPsLQAhWlcVGAXTe6yL_7PQBEqGLNF2jrMnFfBeWFCJyULmVsZ0RVGKGTDyd1WgXCjnE7tVix2RmHLpyk__IH_91B6DsBD7k/s72-c/fff.bmp" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-5249394921413566840.post-3350429588451400353</guid><pubDate>Wed, 06 Jul 2011 05:18:00 +0000</pubDate><atom:updated>2011-07-05T22:18:32.689-07:00</atom:updated><title>How to print a rectangle in java</title><description>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEiuOFLvRNpBavcKN19VUiVsFYYju7y8oIYAJ9yVnJcSG2cUMDn43iHa7r90o8dlt48H46KJ08HocMc7eGmckeW_-rgAk7tuwr7vhSElgyUk1PK9cauLJ2Ue4jHpnswB1wPCglrYdYCHg/s1600/ddd.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEiuOFLvRNpBavcKN19VUiVsFYYju7y8oIYAJ9yVnJcSG2cUMDn43iHa7r90o8dlt48H46KJ08HocMc7eGmckeW_-rgAk7tuwr7vhSElgyUk1PK9cauLJ2Ue4jHpnswB1wPCglrYdYCHg/s1600/ddd.bmp" /&gt;&amp;nbsp;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhijT4waIa1jIOWGkHGTgIO6OOev70VQBrmT_V6Hsj748osi4EheO1stWi0o4Eoc0Bm1ru4EOpu_u3VIJ_xmLR2bR5zPOoQacI7xqqKb2Q9Qgpl0IK_u7QheyZmFjjHULmzJiV-nb7oLRE/s1600/d11.bmp" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="197" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhijT4waIa1jIOWGkHGTgIO6OOev70VQBrmT_V6Hsj748osi4EheO1stWi0o4Eoc0Bm1ru4EOpu_u3VIJ_xmLR2bR5zPOoQacI7xqqKb2Q9Qgpl0IK_u7QheyZmFjjHULmzJiV-nb7oLRE/s320/d11.bmp" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;</description><link>http://j2se-notes.blogspot.com/2011/07/how-to-print-rectangle-in-java.html</link><author>noreply@blogger.com (laksitha)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEiuOFLvRNpBavcKN19VUiVsFYYju7y8oIYAJ9yVnJcSG2cUMDn43iHa7r90o8dlt48H46KJ08HocMc7eGmckeW_-rgAk7tuwr7vhSElgyUk1PK9cauLJ2Ue4jHpnswB1wPCglrYdYCHg/s72-c/ddd.bmp" width="72"/><thr:total>0</thr:total></item></channel></rss>