<?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-4576216002012739289</id><updated>2026-10-14T01:58:14.202+05:30</updated><category term="Java Codes"/><category term="C++ Codes"/><category term="C++ Other Codes"/><category term="C++ Basic Codes"/><category term="C++ Function Codes"/><category term="C++ Class Codes"/><category term="Java AWT Codes"/><category term="Java Applet Codes"/><category term="Java Other  Codes"/><category term="C++ Array Codes"/><category term="C++ Loops Codes"/><category term="Java Q&#39;s and A&#39;s"/><category term="C++ String Codes"/><category term="Java Thread Codes"/><category term="C++ Inheritance Codes"/><category term="C++ Structure Codes"/><category term="Collection"/><category term="C++  Directives Codes"/><category term="JSP"/><category term="Java AppCodes"/><category term="Javascript"/><category term="Java"/><category term="xml"/><category term="C++ Linkedlist Codes"/><category term="Java MCQ&#39;s"/><category term="Java Package Codes"/><title type='text'>.</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>689</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-7425526396036386104</id><published>2012-06-25T17:57:00.001+05:30</published><updated>2012-06-25T17:57:02.305+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="JSP"/><category scheme="http://www.blogger.com/atom/ns#" term="xml"/><title type='text'>Read XML Taglib and JSTL in JSP</title><summary type="text">
samle.xml

&amp;nbsp;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&amp;gt;
&amp;nbsp;&amp;lt;weather ver=&quot;2.0&quot;&amp;gt;
&amp;nbsp; &amp;nbsp;&amp;lt;loc id=&quot;INXX0096&quot;&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;dnam&amp;gt;New Delhi, India &amp;lt;/dnam&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;tm&amp;gt;3:30 PM &amp;lt;/tm&amp;gt;
&amp;nbsp; &amp;nbsp;&amp;lt;/loc&amp;gt;
&amp;nbsp; &amp;nbsp;&amp;lt;cc&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;tmp&amp;gt;75 &amp;lt;/tmp&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;bar&amp;gt;
&amp;nbsp; &amp;nbsp; &amp;</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/7425526396036386104/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/read-xml-taglib-and-jstl-in-jsp.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/7425526396036386104'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/7425526396036386104'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/read-xml-taglib-and-jstl-in-jsp.html' title='Read XML Taglib and JSTL in JSP'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-2267300219156803347</id><published>2012-06-25T17:00:00.001+05:30</published><updated>2012-06-25T17:00:50.000+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java AppCodes"/><category scheme="http://www.blogger.com/atom/ns#" term="xml"/><title type='text'>How to read XML file in java</title><summary type="text">

books.xml

&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;iso-8859-1&quot;?&amp;gt;
&amp;lt;library&amp;gt;
&amp;nbsp;&amp;lt;book&amp;gt;
&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;Head First Java, 2nd Edition&amp;lt;/name&amp;gt;
&amp;nbsp; &amp;nbsp;&amp;lt;author&amp;gt;Kathy Sierra and Bert Bates&amp;lt;/author&amp;gt;
&amp;nbsp; &amp;nbsp;&amp;lt;publication-date&amp;gt;09-Feb-2005&amp;lt;/publication-date&amp;gt;
&amp;nbsp;&amp;lt;/book&amp;gt;
&amp;nbsp;&amp;lt;book&amp;gt;
&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;Effective Java&amp;lt;/name&amp;gt</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/2267300219156803347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/how-to-read-xml-file-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/2267300219156803347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/2267300219156803347'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/how-to-read-xml-file-in-java.html' title='How to read XML file in java'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-8939227019988562843</id><published>2012-06-25T16:56:00.001+05:30</published><updated>2012-06-25T16:56:45.307+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>getElementsByTagName in javascript</title><summary type="text">
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;getElementsByTagName Javascript&amp;lt;/title&amp;gt;
&amp;lt;script&amp;gt;
function getElementFtn()
{
&amp;nbsp;alert(document.getElementsByTagName(&quot;p&quot;).item(0).innerHTML)
}
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
&amp;lt;p&amp;gt;this is first tag&amp;lt;/p&amp;gt;

&amp;lt;p&amp;gt;this is second&amp;lt;/p&amp;gt;

&amp;lt;p id=&quot;pID&quot;&amp;gt;this is third tag&amp;lt;/p&amp;gt;

&amp;lt;p&amp;gt;this is forth tag&amp;lt;/p&amp;gt;

&amp;</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/8939227019988562843/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/getelementsbytagname-in-javascript.html#comment-form' title='25 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/8939227019988562843'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/8939227019988562843'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/getelementsbytagname-in-javascript.html' title='getElementsByTagName in javascript'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>25</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-4440099416642909395</id><published>2012-06-25T16:54:00.002+05:30</published><updated>2012-06-25T16:55:24.476+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Form parameter validation using javascript(username,password,email,number,alphanumeric))</title><summary type="text">

UserName Password validation

&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Required Validation&amp;lt;/title&amp;gt;
&amp;lt;script&amp;gt;
function validate()
{
&amp;nbsp; var vUser=trim(document.frm.sUser.value);
&amp;nbsp; var vPwd=trim(document.frm.sPwd.value);

&amp;nbsp; if(vUser==&quot;&quot;)
&amp;nbsp; {
&amp;nbsp; &amp;nbsp; alert(&quot;User Name Field is Empty&quot;);
&amp;nbsp; &amp;nbsp; document.frm.sUser.focus();
&amp;nbsp; &amp;nbsp; return false;
&amp;nbsp; }
&amp;</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/4440099416642909395/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/form-parameter-validation-using.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4440099416642909395'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4440099416642909395'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/form-parameter-validation-using.html' title='Form parameter validation using javascript(username,password,email,number,alphanumeric))'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-677936465587713107</id><published>2012-06-25T16:22:00.001+05:30</published><updated>2012-06-25T16:22:41.908+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Enable Disable Radio button Text box in JavaScript</title><summary type="text">
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Enable Disable Radio button Text box in javascript&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;script&amp;gt;
&amp;nbsp;function chMd()
&amp;nbsp;{
&amp;nbsp; // initialize form with empty field
&amp;nbsp; document.forms[0].sTextBox.disabled=false;
&amp;nbsp; document.forms[0].sTextBox.value=&quot;&quot;;

&amp;nbsp; document.forms[0].eTextBox.disabled=false;
&amp;nbsp; document.forms[0].eTextBox.value=&quot;&quot;;

&amp;</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/677936465587713107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/enable-disable-radio-button-text-box-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/677936465587713107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/677936465587713107'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/enable-disable-radio-button-text-box-in.html' title='Enable Disable Radio button Text box in JavaScript'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-4766724177171886658</id><published>2012-06-25T16:20:00.001+05:30</published><updated>2012-06-25T16:20:05.719+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Selecting all checkboxes using javascript</title><summary type="text">
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;JavaScript - Select All checkbox in form&amp;lt;/title&amp;gt;
&amp;lt;script&amp;gt;
var fieldName=&#39;chkName&#39;;

function selectall(){
&amp;nbsp; var i=document.frm.elements.length;
&amp;nbsp; var e=document.frm.elements;
&amp;nbsp; var name=new Array();
&amp;nbsp; var value=new Array();
&amp;nbsp; var j=0;
&amp;nbsp; for(var k=0;k&amp;lt;i;k++)
&amp;nbsp; {
&amp;nbsp; &amp;nbsp; if(document.frm.elements[k].name=</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/4766724177171886658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/selecting-all-checkboxes-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4766724177171886658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4766724177171886658'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/selecting-all-checkboxes-using.html' title='Selecting all checkboxes using javascript'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-5585124173488371254</id><published>2012-06-25T16:17:00.001+05:30</published><updated>2012-06-25T16:17:59.599+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Get Checkbox Value using javascript</title><summary type="text">
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;JavaScript select checkbox&amp;lt;/title&amp;gt;
&amp;lt;script&amp;gt;
function selectCheckBox()
{
&amp;nbsp; var e= document.frm.elements.length;
&amp;nbsp; var cnt=0;

&amp;nbsp; for(cnt=0;cnt&amp;lt;e;cnt++)
&amp;nbsp; {
&amp;nbsp; &amp;nbsp; if(document.frm.elements[cnt].name==&quot;id&quot;){
&amp;nbsp; &amp;nbsp; &amp;nbsp;alert(document.frm.elements[cnt].value)
&amp;nbsp; &amp;nbsp; }
&amp;nbsp; }
}
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/5585124173488371254/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/get-checkbox-value-using-javascript.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/5585124173488371254'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/5585124173488371254'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/get-checkbox-value-using-javascript.html' title='Get Checkbox Value using javascript'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-8609108135013551157</id><published>2012-06-25T16:15:00.001+05:30</published><updated>2012-06-25T16:15:48.517+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>More than one form in HTML page</title><summary type="text">
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Use more than one form in html page&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
&amp;lt;form name=&quot;frm1&quot; action=&quot;actionPage1.jsp&quot;&amp;gt;

&amp;lt;input type=&quot;text&quot; name=&quot;txtName&quot;&amp;gt;
&amp;lt;input type=&quot;submit&quot; name=&quot;goSubmit&quot; value=&quot;Submit&quot;&amp;gt;

&amp;lt;/form&amp;gt;

&amp;lt;form name=&quot;frm2&quot; action=&quot;actionPage2.jsp&quot;&amp;gt;

&amp;lt;input type=&quot;text&quot; name=&quot;txtName&quot;&amp;gt;
&amp;lt;input type=&quot;submit</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/8609108135013551157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/more-than-one-form-in-html-page.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/8609108135013551157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/8609108135013551157'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/more-than-one-form-in-html-page.html' title='More than one form in HTML page'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-4017512911916114079</id><published>2012-06-25T16:13:00.001+05:30</published><updated>2012-06-25T16:13:46.785+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Confirm function in Javascript</title><summary type="text">
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Confirm javascript&amp;lt;/title&amp;gt;
&amp;lt;script&amp;gt;
&amp;nbsp; &amp;nbsp; function validate()
&amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; var confirmMessage=&quot;Are you sure to move Yahoo home page!&quot;;

&amp;nbsp; &amp;nbsp; &amp;nbsp; if(confirm(confirmMessage)==false)
&amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return false;
&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; }
&amp;lt;/script&amp;</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/4017512911916114079/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/confirm-function-in-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4017512911916114079'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4017512911916114079'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/confirm-function-in-javascript.html' title='Confirm function in Javascript'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-5513256422625489766</id><published>2012-06-25T16:11:00.001+05:30</published><updated>2012-06-25T16:11:56.461+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>Calling href using JavaScript</title><summary type="text">
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Calling JavaScript Href&amp;lt;/title&amp;gt;
&amp;lt;script&amp;gt;
function callHref()
{
&amp;nbsp; alert(&quot;Function is called from Href&quot;);
}
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
&amp;lt;a href=&quot;javascript:callHref()&quot;&amp;gt;Calling JavaScript Href &amp;lt;/a&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/5513256422625489766/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/calling-href-using-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/5513256422625489766'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/5513256422625489766'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/calling-href-using-javascript.html' title='Calling href using JavaScript'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-4371232675375072471</id><published>2012-06-25T16:09:00.001+05:30</published><updated>2012-06-25T16:09:24.732+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><title type='text'>How to Submit a Form Using JavaScript</title><summary type="text">
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;title&amp;gt;Submit form using javascript&amp;lt;/title&amp;gt;
&amp;lt;script&amp;gt;
function goSubmit()
{
&amp;nbsp; document.frm.submit();
}
&amp;lt;/script&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;
&amp;lt;form name=&quot;frm&quot;&amp;gt;
&amp;nbsp;&amp;lt;a href=&quot;javascript:goSubmit()&quot;&amp;gt;Submit form &amp;lt;/a&amp;gt;
&amp;nbsp;&amp;lt;br&amp;gt;
&amp;nbsp;&amp;lt;input type=&quot;button&quot; name=&quot;btn&quot; value=&quot;Submit&quot; onClick=&quot;goSubmit()&quot;&amp;gt;
&amp;lt;/form&amp;gt;
</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/4371232675375072471/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/how-to-submit-form-using-javascript.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4371232675375072471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4371232675375072471'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/how-to-submit-form-using-javascript.html' title='How to Submit a Form Using JavaScript'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-3440992857753677792</id><published>2012-06-25T16:04:00.001+05:30</published><updated>2012-06-25T16:04:39.021+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Other  Codes"/><title type='text'>How to get day month year in date</title><summary type="text">
import java.util.Calendar;

public class GetDate {
&amp;nbsp; &amp;nbsp; public static void main(String[] args) {

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Calendar ca1 = Calendar.getInstance();

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /// get day month year from set date
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ca1.set(2009, 05, 15); // dont set this date if current date is required

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int iDay=ca1.get(</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/3440992857753677792/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/how-to-get-day-month-year-in-date.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/3440992857753677792'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/3440992857753677792'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/how-to-get-day-month-year-in-date.html' title='How to get day month year in date'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-7535798594250022463</id><published>2012-06-25T16:03:00.001+05:30</published><updated>2012-06-25T16:03:45.746+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Other  Codes"/><title type='text'>How to find Week of Year</title><summary type="text">
import java.util.Calendar;

public class WeekOfYear {

&amp;nbsp; &amp;nbsp; public static void main(String[] args) {

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Calendar ca1 = Calendar.getInstance();

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(int year, int month, int date)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jan=0,Feb=1,Mar=2...
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ca1.set(2009,4,22</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/7535798594250022463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/how-to-find-week-of-year.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/7535798594250022463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/7535798594250022463'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/how-to-find-week-of-year.html' title='How to find Week of Year'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-6544401137253124157</id><published>2012-06-25T16:02:00.001+05:30</published><updated>2012-06-25T16:02:27.669+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Other  Codes"/><title type='text'>How to get Day of Week in Month</title><summary type="text">
import java.util.Calendar;

public class DayOfWeekInMonth {

&amp;nbsp; &amp;nbsp; public static void main(String[] args) {

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Calendar ca1 = Calendar.getInstance();

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ca1.set(2009, 6, 22);

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int DAY_OF_WEEK_IN_MONTH=ca1.get(Calendar.DAY_OF_WEEK_IN_MONTH);

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // More Calendar Date option can check
&amp;</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/6544401137253124157/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/how-to-get-day-of-week-in-month.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/6544401137253124157'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/6544401137253124157'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/how-to-get-day-of-week-in-month.html' title='How to get Day of Week in Month'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-4869820173508862371</id><published>2012-06-25T16:00:00.001+05:30</published><updated>2012-06-25T16:00:39.875+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Other  Codes"/><title type='text'>How to Add or Subtract Date</title><summary type="text">
import java.util.Calendar;

public class AddDate {

    public static void main(String[] args) {

    Calendar ca1 = Calendar.getInstance();
    ca1.set(2009,05,25);

    // Addition of date in java        
    ca1.add(Calendar.DATE, 23); // Add 23 days in Dates in Calendar
    //ca1.add(Calendar.MONTH, 2); // Add 2 Month in Date in Calendar
    //ca1.add(Calendar.YEAR, 4); // Add 4 Year in Date</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/4869820173508862371/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/how-to-add-or-subtract-date.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4869820173508862371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4869820173508862371'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/how-to-add-or-subtract-date.html' title='How to Add or Subtract Date'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-4675684091219079490</id><published>2012-06-25T15:59:00.001+05:30</published><updated>2012-06-25T15:59:01.906+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Other  Codes"/><title type='text'>find Week of Month in java</title><summary type="text">
import java.util.Calendar;

public class WeekOfMonth {

&amp;nbsp; &amp;nbsp; public static void main(String[] args) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Calendar ca1 = Calendar.getInstance();

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(int year, int month, int date)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jan=0,Feb=1,Mar=2...
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ca1.set(2009,4,22</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/4675684091219079490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/find-week-of-month-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4675684091219079490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4675684091219079490'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/find-week-of-month-in-java.html' title='find Week of Month in java'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-4112859412539457799</id><published>2012-06-25T15:57:00.001+05:30</published><updated>2012-06-25T15:57:29.430+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Other  Codes"/><title type='text'>find Day of Year in Java</title><summary type="text">
import java.util.Calendar;

public class DayOfYear {

&amp;nbsp; &amp;nbsp; public static void main(String[] args) {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Calendar ca1 = Calendar.getInstance();

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /*
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; set(int year, int month, int date)
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Jan=0,Feb=1,Mar=2...
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; */
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ca1.set(2009,4,22);</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/4112859412539457799/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/find-day-of-year-in-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4112859412539457799'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4112859412539457799'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/find-day-of-year-in-java.html' title='find Day of Year in Java'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-4843023946421310069</id><published>2012-06-25T15:56:00.001+05:30</published><updated>2012-06-25T15:56:17.412+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Other  Codes"/><title type='text'>How to Create file in Java</title><summary type="text">
import java.io.File;
import java.io.FileWriter;
import java.io.BufferedWriter;

public class JavaIOWriteFileExample {

&amp;nbsp; &amp;nbsp; public static void main(String[] args) {

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; File f=new File(&quot;c:\\createNewfile.txt&quot;);

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try{
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FileWriter fstreamCopy = new FileWriter(f);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/4843023946421310069/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/how-to-create-file-in-java.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4843023946421310069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4843023946421310069'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/how-to-create-file-in-java.html' title='How to Create file in Java'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-539634744442140136</id><published>2012-06-25T15:51:00.002+05:30</published><updated>2012-06-25T15:51:43.783+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Collection"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Other  Codes"/><title type='text'>SortedSet Example</title><summary type="text">
import java.util.Iterator;
import java.util.SortedSet;
import java.util.TreeSet;

public class SortedSetExample {

&amp;nbsp; &amp;nbsp; public static void main(String[] args) {

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SortedSet&amp;lt;String&amp;gt; ss=new TreeSet&amp;lt;String&amp;gt;();

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ss.add(&quot;a&quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ss.add(&quot;e&quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ss.add(&quot;g&quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/539634744442140136/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/sortedset-example.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/539634744442140136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/539634744442140136'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/sortedset-example.html' title='SortedSet Example'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-7117535005048471912</id><published>2012-06-25T15:49:00.001+05:30</published><updated>2012-06-25T15:49:42.455+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Collection"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Other  Codes"/><title type='text'>Remove elements from SortedMap</title><summary type="text">
import java.util.Iterator;
import java.util.Map;
import java.util.Set;
import java.util.SortedMap;
import java.util.TreeMap;

public class SortedMapRemoveExample {

&amp;nbsp; &amp;nbsp; public static void main(String[] args) {

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SortedMap&amp;lt;Integer,String&amp;gt; sm=new TreeMap&amp;lt;Integer, String&amp;gt;();

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sm.put(new Integer(2), &quot;Two&quot;);
&amp;nbsp; &amp;nbsp; &amp;</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/7117535005048471912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/remove-elements-from-sortedmap.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/7117535005048471912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/7117535005048471912'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/remove-elements-from-sortedmap.html' title='Remove elements from SortedMap'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-1693095130056032166</id><published>2012-06-25T15:47:00.001+05:30</published><updated>2012-06-25T15:47:07.884+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Collection"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Other  Codes"/><title type='text'>Remove elements from SortedSet</title><summary type="text">
import java.util.Iterator;
import java.util.SortedSet;
import java.util.TreeSet;

public class SortedSetRemoveExample {

&amp;nbsp; &amp;nbsp; public static void main(String[] args) {

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SortedSet&amp;lt;String&amp;gt; ss=new TreeSet&amp;lt;String&amp;gt;();

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ss.add(&quot;a&quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ss.add(&quot;e&quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ss.add(&quot;g&quot;);
&amp;nbsp; &amp;nbsp;</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/1693095130056032166/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/remove-elements-from-sortedset.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/1693095130056032166'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/1693095130056032166'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/remove-elements-from-sortedset.html' title='Remove elements from SortedSet'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-4436381954717754813</id><published>2012-06-25T15:44:00.001+05:30</published><updated>2012-06-25T15:44:41.542+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Collection"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Other  Codes"/><title type='text'>Remove elements from Set</title><summary type="text">
import java.util.Iterator;
import java.util.Set;
import java.util.TreeSet;

public class SetRemoveExample {

&amp;nbsp; &amp;nbsp; public static void main(String[] args) {

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Set&amp;lt;String&amp;gt; s=new TreeSet&amp;lt;String&amp;gt;();

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; s.add(&quot;b&quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; s.add(&quot;a&quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; s.add(&quot;d&quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; s.add(&quot;</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/4436381954717754813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/remove-elements-from-set.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4436381954717754813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4436381954717754813'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/remove-elements-from-set.html' title='Remove elements from Set'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-4849571838684286635</id><published>2012-06-25T15:32:00.001+05:30</published><updated>2012-06-25T15:32:10.299+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Collection"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Other  Codes"/><title type='text'>Remove elements from Map</title><summary type="text">
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Set;

public class MapRemoveExample {

&amp;nbsp; &amp;nbsp; public static void main(String[] args) {

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Map&amp;lt;Object,String&amp;gt; mp=new HashMap&amp;lt;Object, String&amp;gt;();

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mp.put(new Integer(2), &quot;Two&quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mp.put(new Integer(1), &quot;One&quot;);</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/4849571838684286635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/remove-elements-from-map.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4849571838684286635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/4849571838684286635'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/remove-elements-from-map.html' title='Remove elements from Map'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-6401195106586092367</id><published>2012-06-25T15:30:00.001+05:30</published><updated>2012-06-25T15:30:51.478+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Collection"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Other  Codes"/><title type='text'>Remove Element from ArrayList</title><summary type="text">
import java.util.ArrayList;

public class RemoveArrayListElement {

&amp;nbsp; &amp;nbsp; public static void main(String[] args) {

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ArrayList&amp;lt;String&amp;gt; arlist=new ArrayList&amp;lt;String&amp;gt;();

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //&amp;lt;E&amp;gt; it is return type of ArrayList

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; arlist.add(&quot;First Element&quot;); // adding element in ArrayList
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/6401195106586092367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/remove-element-from-arraylist.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/6401195106586092367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/6401195106586092367'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/remove-element-from-arraylist.html' title='Remove Element from ArrayList'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4576216002012739289.post-5784581788924076646</id><published>2012-06-25T15:29:00.001+05:30</published><updated>2012-06-25T15:29:09.110+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Collection"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Other  Codes"/><title type='text'>Remove elements from List</title><summary type="text">
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

public class ListRemoveExample {

&amp;nbsp; &amp;nbsp; public static void main(String[] args) {

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List&amp;lt;String&amp;gt; ls=new ArrayList&amp;lt;String&amp;gt;();

&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ls.add(&quot;one&quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ls.add(&quot;Three&quot;);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ls.add(&quot;two&quot;);
&amp;nbsp; &amp;nbsp; &amp;</summary><link rel='replies' type='application/atom+xml' href='http://codeprecisely.blogspot.com/feeds/5784581788924076646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/remove-elements-from-list.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/5784581788924076646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4576216002012739289/posts/default/5784581788924076646'/><link rel='alternate' type='text/html' href='http://codeprecisely.blogspot.com/2012/06/remove-elements-from-list.html' title='Remove elements from List'/><author><name>Precise Coder</name><uri>http://www.blogger.com/profile/00936528405701006850</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixhtVeAiWuxGwitS87MtmJ815rI6g90_zJ-vv8Q8V4ijzgctkqxMLQcLTcnyx-c6B2n7MmqDIPXtv0fM-kOW_pQkk4DXzXT69ImmK45vTKkjzJpzzK1q78pbIDpgKivMg/s1600/*'/></author><thr:total>0</thr:total></entry></feed>