<?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-8875929270958029587</id><updated>2026-07-24T11:27:35.569+05:30</updated><category term="Security"/><category term="Hacking"/><category term="HACKING TOOLS"/><category term="java"/><category term="Virus"/><category term="Antivirus"/><category term="Internet explorer"/><category term="Java Program"/><category term="Virus removal"/><category term="Web Browser security"/><category term="Microsoft"/><category term="Linux"/><category term="MOBILE"/><category term="algorithm"/><category term="Blackberry"/><category term="Hacking history"/><category term="Microsoft security"/><category term="Oracle"/><category term="Win XP"/><category term="Chrome"/><category term="Porn Hacking tool"/><category term="Wireless"/><category term="eclipse"/><category term="email"/><category term="password"/><category term="software"/><category term="websense"/><category term="Bluetooth"/><category term="DOS ATTACK"/><category term="Google"/><category term="Machine Language"/><category term="SQL INJECTION"/><category term="Trojan"/><category term="cypher"/><category term="ip address"/><category term="placement paper"/><category term="remote desktop"/><category term="tree"/><category term="web security"/><category term="3G"/><category term="Amazon"/><category term="Atm"/><category term="EXE Files"/><category term="FIREWALL"/><category term="Internet in space"/><category term="Online Messenger"/><category term="Persistent"/><category term="Yahoo"/><category term="campus"/><category term="credit card"/><category term="csv"/><category term="files"/><category term="isa"/><category term="java Question"/><category term="mail"/><category term="office"/><category term="outlook"/><category term="products"/><category term="sports"/><category term="tools"/><category term="users Prosecuted"/><category term="window"/><category term="worms"/><title type='text'>THE INTERNET SECURITY AND JAVA ALGORITHMS</title><subtitle type='html'>Deals with the Internet Security related queries and the Java Algorithms and implementation of the Algo in our own ways.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>139</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-2531947274539587754</id><published>2014-04-19T14:14:00.000+05:30</published><updated>2014-04-19T14:33:51.145+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Program"/><title type='text'>Playing Around With Frequently Changing String Tokenizer</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Calibri;&quot;&gt;&lt;strong&gt;&lt;em&gt;&lt;u&gt;Playing
Around With Frequently Changing String Tokenizer&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;/span&gt;&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Recently I
was working on one of my Project Module. I had to use some data from the other
module and they were sending this in the form of String Tokens, like &quot;element_1;element_2&lt;element1&gt;;element_3&lt;element2&gt;;element_4&lt;element3&gt;;&quot;&lt;element4&gt;.
So, as normal I did the normal tokenize code and break this tokens to use the
values. Now they changed the token order, so I would have to do all the rework.
&lt;/element4&gt;&lt;/element3&gt;&lt;/element2&gt;&lt;/element1&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
After that I
came up with some solutions so that my code rework can be minimised even if
the&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;token orders are changed. So I did
the following:&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
1) Add all
the tokens in the List. Let’s say, in the tokenizer parser method, just add all
the token in the List.&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;2) Do not
write any core logic in the token parser method.&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;3) Now
create a enum or any such structure which will hold the token position. In my
case I use the enum.&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;e.g. &lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;enum&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; ElementPositionEnum
{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;ELEMENT_1&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;(0), &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;ELEMENT_2&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;(1), &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;ELEMENT_3&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;(2), &lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;ELEMENT_4&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;(3);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;private&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;position&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;ElementPositionEnum(&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; position) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;this&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;position&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; = position;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: silver; color: #7f0055; font-family: Consolas; font-size: 10pt; mso-highlight: silver;&quot;&gt;int&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; getPosition() {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: silver; color: #7f0055; font-family: Consolas; font-size: 10pt; mso-highlight: silver;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: silver; color: black; font-family: Consolas; font-size: 10pt; mso-highlight: silver;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;background: silver; color: #7f0055; font-family: Consolas; font-size: 10pt; mso-highlight: silver;&quot;&gt;this&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;background: silver; color: black; font-family: Consolas; font-size: 10pt; mso-highlight: silver;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;background: silver; color: #0000c0; font-family: Consolas; font-size: 10pt; mso-highlight: silver;&quot;&gt;position&lt;/span&gt;&lt;span style=&quot;background: silver; color: black; font-family: Consolas; font-size: 10pt; mso-highlight: silver;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;4) Now while
creating the object or setting the value to my object, just fetch the elements
from the List based upon the Enum position.&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;E.g. If I have to fetch the
&lt;element_1&gt; value,&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp; &lt;/span&gt;I will do it
like this:&lt;/element_1&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;String myVal =
List.get(MyElementPositionEnum.ELEMENT_1.getPosition());&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;5) So, even
if the tokens sequence is changed, then&lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;
&lt;/span&gt;we only need to change the enum&#39;s value. Rest of the code will be same.&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;Java Code
for Same :&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;class&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; TokenizerParser {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; TokenElementTO
parseToken(String token)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;List&lt;string&gt;
listOfTOken = &lt;/string&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;new&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; ArrayList&lt;string&gt;();&lt;/string&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;String[]
tokens = token.split(&lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&quot;;&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;for&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;(String val : tokens)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;listOfTOken.add(val);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;
createTokenElementObject(listOfTOken);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; TokenElementTO
createTokenElementObject(List&lt;string&gt; listOfTOken)&amp;nbsp;&amp;nbsp; &lt;/string&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;TokenElementTO
to = &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;new&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; TokenElementTO();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;(listOfTOken.size()
&amp;gt; ElementPositionEnum.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;ELEMENT_1&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;.getPosition())&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;to.setElement_1(listOfTOken.getElementPositionEnum.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;ELEMENT_1&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;.getPosition()));&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;(listOfTOken.size()
&amp;gt; ElementPositionEnum.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;ELEMENT_2&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;.getPosition())&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;to.setElement_2(listOfTOken.get(ElementPositionEnum.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;ELEMENT_2&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;.getPosition()));&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;(listOfTOken.size()
&amp;gt; ElementPositionEnum.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;ELEMENT_3&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;.getPosition())&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;to.setElement_3(listOfTOken.get(ElementPositionEnum.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;ELEMENT_3&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;.getPosition()));&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;if&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;(listOfTOken.size()
&amp;gt; ElementPositionEnum.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;ELEMENT_4&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;.getPosition())&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;to.setElement_4(listOfTOken.get(ElementPositionEnum.&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;ELEMENT_4&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;.getPosition()));&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; to;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;static&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; main(String[] args)&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;{&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;TokenizerParser
main = &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;new&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; TokenizerParser();&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;String
tokens = &lt;/span&gt;&lt;span style=&quot;color: #2a00ff; font-family: Consolas; font-size: 10pt;&quot;&gt;&quot;AAA;BBB;CCC;DDDD&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;main.parseToken(tokens);&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;class&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; TokenElementTO {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; String &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;element_1&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; String &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;element_2&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; String &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;element_3&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;private&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; String &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;element_4&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;font-family: Consolas; font-size: 10pt;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; String
getElement_1() {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;element_1&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; setElement_1(String
element_1) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;this&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;element_1&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; = element_1;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; String
getElement_2() {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;element_2&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; setElement_2(String
element_2) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;this&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;element_2&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; = element_2;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; String
getElement_3() {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;element_3&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; setElement_3(String
element_3) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;this&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;element_3&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; = element_3;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; String
getElement_4() {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;return&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;element_4&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;public&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; &lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;void&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; setElement_4(String
element_4) {&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 2;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055; font-family: Consolas; font-size: 10pt;&quot;&gt;this&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000c0; font-family: Consolas; font-size: 10pt;&quot;&gt;element_4&lt;/span&gt;&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt; = element_4;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;line-height: normal; margin: 0cm 0cm 0pt; mso-layout-grid-align: none;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt;&quot;&gt;&lt;span style=&quot;mso-tab-count: 1;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;color: black; font-family: Consolas; font-size: 10pt; line-height: 115%;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;

&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/2531947274539587754/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/2531947274539587754' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/2531947274539587754'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/2531947274539587754'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2014/04/playing-around-with-frequently-changing.html' title='Playing Around With Frequently Changing String Tokenizer'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-6710856257265427129</id><published>2014-03-13T21:24:00.000+05:30</published><updated>2014-03-13T21:27:44.916+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Program"/><title type='text'>Create JavaOutOfMemory Crash Dump</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;em&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;Create JavaOutOfMemory Crash Dump:&lt;/span&gt;&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;&lt;em&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
Sometime Java Application crashes due to out of memory exception. If we don&#39;t have the proper logging mechanism, we won&#39;t be able to find out why the application has crashed. We can use the Jconsole or Jprofiler to debug the memory leak. But if our application crashes after running for 3-4 hours, it will be difficult to debug without having proper dump.&lt;br /&gt;
Java provides some useful arguments, using which we can create the core dump using very few arguments.&lt;br /&gt;
We can add below arguments in the JVM to&amp;nbsp;get the dump:&lt;br /&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; java -ms32m -mx512m &lt;strong&gt;-XX:+HeapDumpOnOutOfMemoryError&lt;/strong&gt;.&lt;br /&gt;
By adding the above argument, when the application crashes, It will create the dump with name : &lt;strong&gt;java_pid&lt;app pid=&quot;&quot;&gt;.hprof&lt;/app&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/6710856257265427129/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/6710856257265427129' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/6710856257265427129'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/6710856257265427129'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2014/03/create-javaoutofmemory-crash-dump.html' title='Create JavaOutOfMemory Crash Dump'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-4546020204159525571</id><published>2013-04-01T14:42:00.000+05:30</published><updated>2013-04-01T15:01:42.374+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="Amazon"/><category scheme="http://www.blogger.com/atom/ns#" term="Google"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Program"/><category scheme="http://www.blogger.com/atom/ns#" term="Persistent"/><category scheme="http://www.blogger.com/atom/ns#" term="placement paper"/><title type='text'>ALGORITHM TO DETERMINE STRING CONTAINS UNIQUE CHARACTER</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: #3f5fbf; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #3f5fbf; font-size: x-small;&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: red; font-size: small;&quot;&gt;Implement an algorithm to determine if a string has all unique characters. With and without using extra additional data structures&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3f5fbf; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: #3f5fbf; font-size: x-small;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;div align=&quot;LEFT&quot;&gt;
&lt;br /&gt;
/**&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
* Implement an algorithm to determine if a string has all unique characters.&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
* With and without using extra additional data structures?&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
*&lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;@author&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt; Sonu Mishra&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;u&gt;
&lt;/u&gt;*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;public &lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;class&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; StringContainsUniqueCharacter {&lt;br /&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;/**&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;* Without using extra DS.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;*&amp;nbsp;&amp;nbsp;Ignoring int variable. Time complexity is &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;div align=&quot;LEFT&quot;&gt;
* O(n), where n is the length of the string, and space complexity is O(n).&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
* We can reduce our space usage a little bit by using a bit vector.We will&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
* assume, in the below code, that the string is only lower case ‘a’ through&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
* ‘z’.This will allow us to use just a single int&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;u&gt;
&lt;/u&gt;* &lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;@param&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt; str: String to check&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;@return : true/false&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;boolean&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; isUniqueChars(String str) {&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; checker = 0;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;for&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; (&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; i = 0; i &amp;lt; str.length(); ++i) {&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; val = str.charAt(i) - &lt;span style=&quot;color: #2a00ff;&quot;&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&#39;a&#39;&lt;/span&gt;&lt;/span&gt;;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; ((checker &amp;amp; (1 &amp;lt;&amp;lt; val)) &amp;gt; 0)&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;return&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;false&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt;;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
checker |= (1 &amp;lt;&amp;lt; val);&lt;/div&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;return&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt;;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
}&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;/**&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;* Using extra variable. For simplicity, assume char set is ASCII (if not,&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;div align=&quot;LEFT&quot;&gt;
* we need to increase the storage size.The rest of the logic would be the&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
* same)&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
* &lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
* &lt;/div&gt;
&lt;/span&gt;&lt;/span&gt;&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;@param&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt; str: String to Check&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;@return : true/false&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;&lt;span style=&quot;color: #7f9fbf;&quot;&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;*/&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;boolean&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; isUniqueChars2(String str) {&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;boolean&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt;[] char_set = &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;new&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;boolean&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt;[256];&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;for&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; (&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; i = 0; i &amp;lt; str.length(); i++) {&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;int&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; val = str.charAt(i);&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;if&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; (char_set[val])&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;return&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;false&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt;;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
char_set[val] = &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt;;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
}&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;return&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;true&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt;;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
}&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;public&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;static&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; &lt;b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;void&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;span style=&quot;color: #7f0055;&quot;&gt;&lt;/span&gt;&lt;/span&gt; main(String[] args) {&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
System.&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;out&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;&lt;/span&gt;&lt;/span&gt;.println(&lt;i&gt;isUniqueChars&lt;/i&gt;(&lt;span style=&quot;color: #2a00ff;&quot;&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;abcdefgh12345a678&quot;&lt;/span&gt;&lt;/span&gt;));&lt;br /&gt;
&lt;div align=&quot;LEFT&quot;&gt;
System.&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;out&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;&lt;span style=&quot;color: #0000c0;&quot;&gt;&lt;/span&gt;&lt;/span&gt;.println(&lt;i&gt;isUniqueChars2&lt;/i&gt;(&lt;span style=&quot;color: #2a00ff;&quot;&gt;&lt;span style=&quot;color: #2a00ff;&quot;&gt;&quot;154678&quot;&lt;/span&gt;&lt;/span&gt;));&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
}&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
}&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&amp;nbsp;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;div align=&quot;LEFT&quot;&gt;
&amp;nbsp; &lt;strong&gt;&lt;u&gt;Alternatively, we could do the following: &lt;/u&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&amp;nbsp; 1. Check every char of the string with every other char of the string for duplicate&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; occurrences.This will take O(n^2) time and no space. &lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&amp;nbsp; 2. If we are allowed to destroy the input string, we could sort the string in &lt;/div&gt;
&lt;div align=&quot;LEFT&quot;&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; O(n log* n) time and then linearly check the string for neighboring characters&amp;nbsp;that are&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;identical.Careful, though &lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;many sorting algorithms take up&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt;&lt;span style=&quot;color: #3f5fbf;&quot;&gt; extra space.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/span&gt;&lt;div align=&quot;LEFT&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/span&gt;&lt;div align=&quot;LEFT&quot;&gt;
&lt;i lt=&quot;&quot;&gt;&lt;/i&gt;&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/4546020204159525571/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/4546020204159525571' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/4546020204159525571'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/4546020204159525571'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2013/04/algorithm-to-determine-string-contains.html' title='ALGORITHM TO DETERMINE STRING CONTAINS UNIQUE CHARACTER'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-4376999191917873488</id><published>2013-01-16T16:03:00.002+05:30</published><updated>2013-01-16T16:07:05.085+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Program"/><title type='text'>Not Accessible Due To Restriction On Required Library</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;&lt;em&gt;&lt;span style=&quot;color: red;&quot;&gt;Not Accessible Due To Restriction On Required Library&lt;/span&gt;&lt;/em&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Today, I was working on some java project in my favourite Eclipse editor, when I encountered some unknown problem. It was throwing some error that the calss cannot be accessed due to restriction on required library. This type of error occurs when some classes cannot be loaded into the projects since some restriction rules are being imposed on those classes. Similarly, I got the error like this:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgslCfEL-usXY0SRFB8OZ6qWpZ-81PgYgtbYbEj8ImXDyBi5-4GVfxF3N52Gxykg4em04B4anw2O3SOiaARxl4mCSfhyboOF7oc6E8CgTQimq6zVg8UXYUZhx8wNuJmXuQjewDIRFhdmLM/s1600/Access_Restriction_Error.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;35&quot; jea=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgslCfEL-usXY0SRFB8OZ6qWpZ-81PgYgtbYbEj8ImXDyBi5-4GVfxF3N52Gxykg4em04B4anw2O3SOiaARxl4mCSfhyboOF7oc6E8CgTQimq6zVg8UXYUZhx8wNuJmXuQjewDIRFhdmLM/s400/Access_Restriction_Error.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;How To solve this Exception:&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
As this error is coming because of some setting where we are excluding some files. So we need to change that settings. For that, click on the &#39;Windows&#39;&amp;nbsp;--&amp;gt; &#39;Preference&#39; and then go to &#39;Java&#39;--&amp;gt;Compiler--&amp;gt;&#39;Error/Warnings&#39; tab. You will find &#39;Forbidden reference (access rules):&#39; and its value has been set to &#39;Error&#39;. So we only need to do is, to change the &#39;Error&#39; to &#39;Warning&#39;, and all is done.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvHP9Hn-zNGwepTiOnUTeONFIfxpIG_xwTu3zvKN4ZgOZNDLzQqT1zO6L1ETStDJlBjL_n18Yybw4qZRflZ5E1rKR4XWi8usp-SIGJ2WG7khzYvwiyljiTy725uOyYupnlMo7awJg1AUc/s1600/Access_Restriction_Error_Solution.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;335&quot; jea=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvHP9Hn-zNGwepTiOnUTeONFIfxpIG_xwTu3zvKN4ZgOZNDLzQqT1zO6L1ETStDJlBjL_n18Yybw4qZRflZ5E1rKR4XWi8usp-SIGJ2WG7khzYvwiyljiTy725uOyYupnlMo7awJg1AUc/s400/Access_Restriction_Error_Solution.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/4376999191917873488/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/4376999191917873488' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/4376999191917873488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/4376999191917873488'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2013/01/not-accessible-due-to-restriction-on.html' title='Not Accessible Due To Restriction On Required Library'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgslCfEL-usXY0SRFB8OZ6qWpZ-81PgYgtbYbEj8ImXDyBi5-4GVfxF3N52Gxykg4em04B4anw2O3SOiaARxl4mCSfhyboOF7oc6E8CgTQimq6zVg8UXYUZhx8wNuJmXuQjewDIRFhdmLM/s72-c/Access_Restriction_Error.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-2539123956362604027</id><published>2013-01-07T18:52:00.000+05:30</published><updated>2013-01-07T18:54:59.742+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="campus"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Program"/><category scheme="http://www.blogger.com/atom/ns#" term="java Question"/><category scheme="http://www.blogger.com/atom/ns#" term="placement paper"/><title type='text'>Swapping the Variables Without Using Third Variables</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;&lt;em&gt;&lt;span style=&quot;color: red;&quot;&gt;Swapping the Variables Without Using Third Variables Using Java&lt;/span&gt;&lt;/em&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
In this post, we will see, how to swap the variables. There are different ways to swap the variables. The major swap algorithms are:&lt;br /&gt;
1) Swapping using the third varaibles.&lt;br /&gt;
2) Swapping using the Bitwise Operator. This is only for the Integer. This doesn&#39;t use the third variables.&lt;br /&gt;
3) Swapping using the Arithmetic Operations. This is also, only for the Integer. This also, doesn&#39;t use the &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;third variables.&lt;br /&gt;
4) Swapping the Strings without using the third variables. This is little bit tricky. The logic is similar to the &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; above one, i.e. Arithmetic Operations. But the Strings are immutable in the Java, so, externally we are not &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; using the third variables, but internally, this uses the third variables.&lt;br /&gt;
&lt;br /&gt;
Below, we have the Java Program to discuss all the above methods in details.&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
* This class will reverse the two variables.&lt;br /&gt;
* Here we will see how to swap the variables using or without using the third variables.&lt;br /&gt;
* @author Sonu Mishra&lt;br /&gt;
*/&lt;br /&gt;
public class SwapVariables {&lt;br /&gt;
/**&lt;br /&gt;
* Swapping using the third variable and without the third variables.&lt;br /&gt;
* Swap two variables using the temporary variables or the third variable.&lt;br /&gt;
* @param a The first variable.&lt;br /&gt;
* @param b The Second variable.&lt;br /&gt;
*/&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
public static void swapAnyVariablesUsingTempMethod(String a, String b)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;System.out.println(&quot;Before :: a = &quot;+a+&quot; , b = &quot;+b);&lt;br /&gt;
String temp = a;&lt;br /&gt;
a=b;&lt;br /&gt;
b=temp;&lt;br /&gt;
System.out.println(&quot;After :: a = &quot;+a+&quot; , b = &quot;+b);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
* Swapping without using the third variable.&lt;br /&gt;
* Swap two variables using the Bit Operator. This Method doesn&#39;t use the third variable. &lt;br /&gt;
* But this method can&#39;t be applied to the String, as the String doesn&#39;t support the &lt;br /&gt;
* bit operator.&lt;br /&gt;
* @param a The first variable.&lt;br /&gt;
* @param b The Second variable.&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
public static void swapIntegerVariablesUsingBitOperator(int a, int b)&lt;br /&gt;
{&lt;br /&gt;
System.out.println(&quot;Before :: a = &quot;+a+&quot; , b = &quot;+b);&lt;br /&gt;
a^=b;&lt;br /&gt;
b^=a;&lt;br /&gt;
a^=b;&lt;br /&gt;
System.out.println(&quot;After :: a = &quot;+a+&quot; , b = &quot;+b);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
* Swapping the two integers using the Arithmetic operations, &lt;br /&gt;
* and without using the third variables.&lt;br /&gt;
* But this method can&#39;t be applied to the String, as the String doesn&#39;t support the&lt;br /&gt;
* arithmetic operations. &lt;br /&gt;
* @param a The first variable.&lt;br /&gt;
* @param b The Second variable.&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
public static void swapIntegerVariablesUsingArithmeticOperations(int a, int b)&lt;br /&gt;
{&lt;br /&gt;
a = a + b; &lt;br /&gt;
b = a - b; &lt;br /&gt;
a = a - b; &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
* Swapping the two String without using any external third variables. &lt;br /&gt;
* Indirectly, this uses the third variable internally in java, as the String is immutable.&lt;br /&gt;
* Also, the logic is same as that of the arithmetic operations.&lt;br /&gt;
* @param string1 The first String variable.&lt;br /&gt;
* @param string2 The Second String variable.&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
public static void swapStringWithoutUsingThirdVariables(String string1, String string2)&lt;br /&gt;
{&lt;br /&gt;
System.out.println(&quot;Before :: a = &quot;+string1+&quot; , b = &quot;+string2);&lt;br /&gt;
string1 = (string1.trim())+(string2.trim()) ; &lt;br /&gt;
string2 = string1.substring(0,string1.length()-string2.length()); &lt;br /&gt;
string1 = string1.substring(string2.length());&lt;br /&gt;
System.out.println(&quot;After :: a = &quot;+string1+&quot; , b = &quot;+string2);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// Main Class to test the above function.&lt;br /&gt;
public static void main(String[] args) {&lt;br /&gt;
swapAnyVariablesUsingTempMethod( &quot;Sonu&quot;, &quot;Mishra&quot;);&lt;br /&gt;
swapIntegerVariablesUsingBitOperator(5, 7);&lt;br /&gt;
swapIntegerVariablesUsingArithmeticOperations(10,12);&lt;br /&gt;
swapStringWithoutUsingThirdVariables( &quot;Sonu&quot;, &quot;Mishra&quot;);&lt;br /&gt;
}&lt;br /&gt;
}&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/2539123956362604027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/2539123956362604027' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/2539123956362604027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/2539123956362604027'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2013/01/swapping-variables-without-using-third.html' title='Swapping the Variables Without Using Third Variables'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-5104423382901962021</id><published>2012-12-28T13:04:00.000+05:30</published><updated>2012-12-28T13:04:26.832+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Program"/><category scheme="http://www.blogger.com/atom/ns#" term="tree"/><title type='text'>Basic TreeNode Structure in Java using Generics</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;&lt;em&gt;&lt;span style=&quot;color: red;&quot;&gt;Basic TreeNode Structure Using Generics&lt;/span&gt;&lt;/em&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
This is the basic block for creating the binary tree. We generally call this block or the structure as a Node. So this is how a single node is created. This in itself is a&amp;nbsp;tree and when we pile the number of nodes, it become a big tree.&lt;br /&gt;
&lt;br /&gt;
Here is the code, to create the TreeNode.&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
* Basic Structure of the Tree. Or the Single unit of a tree.&lt;br /&gt;
* @author Sonu Mishra&lt;br /&gt;
* @param &lt;e&gt;Type of the Node for the tree. Like. String, Integer&lt;/e&gt;&lt;br /&gt;
*/&lt;br /&gt;
TreeNode&amp;lt; E extends Comparable&amp;lt;? super E&amp;gt;&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
public TreeNode&amp;lt; E &amp;gt; left;&lt;br /&gt;
public TreeNode&amp;lt; E &amp;gt; right;&lt;br /&gt;
E value;&lt;br /&gt;
public TreeNode(TreeNode&amp;lt; E &amp;gt; left, TreeNode&amp;lt; E &amp;gt; right, E value) {&lt;br /&gt;
this.left = left;&lt;br /&gt;
this.right = right;&lt;br /&gt;
this.value = value;&lt;br /&gt;
}&lt;br /&gt;
/**&lt;br /&gt;
* If a node doesn&#39;t have left and right child, it is leaf node.&lt;br /&gt;
* @param node check whether this node is leaf node or not.&lt;br /&gt;
* @return either true or false&lt;br /&gt;
*/&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
boolean isLeafNode(TreeNode&amp;lt; E &amp;gt; node) {&lt;br /&gt;
return node.left == null &amp;amp;&amp;amp; node.right == null;&lt;br /&gt;
}&lt;br /&gt;
/**&lt;br /&gt;
* Prints the tree in In-order. Basically, traverse the tree in the&lt;br /&gt;
* in-order. i.e. will traverse left,root and then right.&lt;br /&gt;
* @param node the node whose in-order to be find.&lt;br /&gt;
*/&lt;br /&gt;
public void printInorder(TreeNode&amp;lt; E &amp;gt; node) {&lt;br /&gt;
if (node == null) {&lt;br /&gt;
return;&lt;br /&gt;
}&lt;br /&gt;
printInorder(node.left);&lt;br /&gt;
System.out.print(node.value + &quot; &quot;);&lt;br /&gt;
printInorder(node.right);&lt;br /&gt;
}&lt;br /&gt;
/**&lt;br /&gt;
* Prints the Leaf node of the tree.&lt;br /&gt;
* @param node the node whose leaf node is to be find.&lt;br /&gt;
*/&lt;br /&gt;
public void printLeafNode(TreeNode&amp;lt; E &amp;gt; node) {&lt;br /&gt;
if (node != null &amp;amp;&amp;amp; (node.left == null &amp;amp;&amp;amp; node.right == null)) {&lt;br /&gt;
System.out.print(node.value + &quot; &quot;);&lt;br /&gt;
return;&lt;br /&gt;
}&lt;br /&gt;
if (node != null) {&lt;br /&gt;
printLeafNode(node.left);&lt;br /&gt;
printLeafNode(node.right);&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
/**&lt;br /&gt;
* Find the Height of the tree&lt;br /&gt;
* @param node find the height of the given node.&lt;br /&gt;
* @return the height of the tree.&lt;br /&gt;
*/&lt;br /&gt;
public int heightOfTree(TreeNode&amp;lt; E &amp;gt; node) {&lt;br /&gt;
if (node == null) {&lt;br /&gt;
return 0;&lt;br /&gt;
} else {&lt;br /&gt;
return 1 + Math.max(heightOfTree(node.left),&lt;br /&gt;
heightOfTree(node.right));&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
public String toString()&lt;br /&gt;
{&lt;br /&gt;
return &quot;[ &quot; + &quot;root = &quot;+value.toString() + &quot; Left = &quot;+&lt;br /&gt;
(left!=null ? left.value : null) + &quot; Right = &quot;+ &lt;br /&gt;
(right!=null ? right.value:null) +&quot; ]&quot;;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/5104423382901962021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/5104423382901962021' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/5104423382901962021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/5104423382901962021'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2012/12/basic-treenode-structure-in-java-using.html' title='Basic TreeNode Structure in Java using Generics'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-2570607768210147856</id><published>2012-12-28T12:09:00.003+05:30</published><updated>2012-12-31T18:11:46.009+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="algorithm"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="tree"/><title type='text'>JAVA WAY TO WRITE TREE</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;em&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;JAVA WAY TO WRITE BINARY SEARCH TREE&lt;/span&gt;&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
A binary search tree (BST),is a node-based data structure in which each node has no more than two child nodes. Each child must either be a leaf node or the root of another binary search tree. The left sub-tree contains only nodes with keys less than the parent node; the right sub-tree contains only nodes with keys greater than the parent node.BST is also known as an ordered binary tree.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsPJPUMmlXzBDKo3zErZoiZT8Cx9wAcIZDsDQF6hGJDqym6yXGGtVuGhCkWN8MAX-_sjcs-dRQyxK4_lA_ztdKBmkTXfD6X6zZGFeNbg7obwRSODYYoE8Bdw_PsLkgGoaRtjggl_OjPIE/s1600/BST.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img alt=&quot;BST&quot; border=&quot;0&quot; eea=&quot;true&quot; height=&quot;256&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsPJPUMmlXzBDKo3zErZoiZT8Cx9wAcIZDsDQF6hGJDqym6yXGGtVuGhCkWN8MAX-_sjcs-dRQyxK4_lA_ztdKBmkTXfD6X6zZGFeNbg7obwRSODYYoE8Bdw_PsLkgGoaRtjggl_OjPIE/s400/BST.bmp&quot; title=&quot;Binary Search Tree&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
Here is the Code to create a binary search tree in java.&lt;br /&gt;
&lt;br /&gt;
import java.util.LinkedList;&lt;br /&gt;
import java.util.NoSuchElementException;&lt;br /&gt;
import java.util.Queue;&lt;br /&gt;
import java.util.Stack;&lt;br /&gt;
/**&lt;br /&gt;
* Creates a Binary Search Tree.&lt;br /&gt;
* @author Sonu Mishra&lt;br /&gt;
*/&lt;br /&gt;
public class BinarySearchTree&amp;lt;E extends Comparable&amp;lt;? super E&amp;gt;&amp;gt;&lt;/div&gt;
&lt;/div&gt;
{&lt;br /&gt;
private TreeNode&amp;lt;E&amp;gt;&lt;e&gt; root = null;&lt;/e&gt;&lt;br /&gt;
public BinarySearchTree() {&lt;br /&gt;
root = new TreeNode&lt;e&gt;(null, null, null);&lt;/e&gt;&lt;br /&gt;
}&lt;br /&gt;
public BinarySearchTree(E value) {&lt;br /&gt;
root = new TreeNode&lt;e&gt;(null, null, value);&lt;/e&gt;&lt;br /&gt;
}&lt;br /&gt;
public void add(E value) {&lt;br /&gt;
addBefore(value, this.root);&lt;br /&gt;
}&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;private TreeNode&amp;lt;E&amp;gt;&lt;e&gt; addBefore(E value, TreeNode&lt;e&gt; root) { &lt;br /&gt;if (root == null)&lt;br /&gt;return new TreeNode&amp;lt;E&amp;gt;&lt;e&gt;(null, null, value);&lt;/e&gt;&lt;br /&gt;int compare = root.value.compareTo(value);&lt;br /&gt;if (compare&amp;nbsp;&amp;lt; 1) {&lt;br /&gt;root.right = addBefore(value, root.right);&lt;br /&gt;} else {&lt;br /&gt;root.left = addBefore(value, root.left);&lt;br /&gt;}&lt;br /&gt;return root;&lt;br /&gt;}&lt;br /&gt;public void printInorder() {&lt;br /&gt;root.printInorder(root);&lt;br /&gt;}&lt;br /&gt;public void printLeafNode() {&lt;br /&gt;System.out.println();&lt;br /&gt;System.out.println(&quot;Finding the leaf Node&quot;);&lt;br /&gt;root.printLeafNode(root);&lt;br /&gt;}&lt;br /&gt;public int heightOfTree() {&lt;br /&gt;System.out.println();&lt;br /&gt;int height = root.heightOfTree(root);&lt;br /&gt;System.out.println(&quot;Height Of Tree is &quot; + height);&lt;br /&gt;return height;&lt;br /&gt;}&lt;br /&gt;public TreeNode&amp;lt;E&amp;gt;&lt;e&gt; getRoot() {&lt;/e&gt;&lt;br /&gt;return root;&lt;br /&gt;}&lt;br /&gt;public E findMax() {&lt;br /&gt;return findMax(root).value;&lt;br /&gt;}&lt;br /&gt;public TreeNode&amp;lt;E&amp;gt;&lt;e&gt; find(E value) {&lt;/e&gt;&lt;br /&gt;return find(value, root);&lt;br /&gt;}&lt;br /&gt;private TreeNode&amp;lt;E&amp;gt;&lt;e&gt; find(E value, TreeNode&lt;e&gt; entry) {&lt;/e&gt;&lt;/e&gt;&lt;br /&gt;while (entry != null) {&lt;br /&gt;if (value.compareTo(entry.value) &amp;lt; 0)&lt;br /&gt;entry = entry.left;&lt;br /&gt;else if (value.compareTo(entry.value) &amp;gt; 0)&lt;br /&gt;entry = entry.right;&lt;br /&gt;else&lt;br /&gt;return entry;&lt;br /&gt;}&lt;br /&gt;return null;&lt;br /&gt;}&lt;br /&gt;private TreeNode&amp;lt;E&amp;gt;&lt;e&gt; remove(E value, TreeNode&lt;e&gt; entry) {&lt;/e&gt;&lt;/e&gt;&lt;br /&gt;if (entry == null)&lt;br /&gt;throw new NoSuchElementException(&quot;Entry not found : &quot;&lt;br /&gt;+ value.toString());&lt;br /&gt;if (value.compareTo(entry.value) &amp;lt; 0)&lt;br /&gt;entry.left = remove(value, entry.left);&lt;br /&gt;else if (value.compareTo(entry.value) &amp;gt; 0)&lt;br /&gt;entry.right = remove(value, entry.right);&lt;br /&gt;else {&lt;br /&gt;/**&lt;br /&gt;* Entry found.&lt;br /&gt;*/&lt;br /&gt;if (entry.left != null &amp;amp;&amp;amp; entry.right != null) {&lt;br /&gt;/**&lt;br /&gt;* Replace with in-order successor (the left-most child of the&lt;br /&gt;* right subtree)&lt;br /&gt;*/&lt;br /&gt;entry.value = findMin(entry.right).value;&lt;br /&gt;entry.right = removeInorderSuccessor(entry.right);&lt;br /&gt;/**&lt;br /&gt;* Replace with in-order predecessor (the right-most child of&lt;br /&gt;* the left subtree) entry.element =&lt;br /&gt;* findMax(entry.left).element; entry.left =&lt;br /&gt;* removeInorderPredecessor(entry.left);&lt;br /&gt;*/&lt;br /&gt;} else&lt;br /&gt;entry = (entry.left != null) ? entry.left : entry.right;&lt;br /&gt;}&lt;br /&gt;return entry;&lt;br /&gt;}&lt;br /&gt;private TreeNode&amp;lt;E&amp;gt;&lt;e&gt; removeInorderSuccessor(TreeNode&lt;e&gt; entry) {&lt;/e&gt;&lt;/e&gt;&lt;br /&gt;if (entry == null)&lt;br /&gt;throw new NoSuchElementException();&lt;br /&gt;else if (entry.left != null) {&lt;br /&gt;entry.left = removeInorderSuccessor(entry.left);&lt;br /&gt;return entry;&lt;br /&gt;} else&lt;br /&gt;return entry.right;&lt;br /&gt;}&lt;br /&gt;private TreeNode&amp;lt;E&amp;gt;&lt;e&gt; removeInorderPredecessor(TreeNode&lt;e&gt; entry) {&lt;/e&gt;&lt;/e&gt;&lt;br /&gt;if (entry == null)&lt;br /&gt;throw new NoSuchElementException();&lt;br /&gt;else if (entry.right != null) {&lt;br /&gt;entry.right = removeInorderPredecessor(entry.right);&lt;br /&gt;return entry;&lt;br /&gt;} else&lt;br /&gt;return entry.left;&lt;br /&gt;} &amp;nbsp; /* Here is the main method to test this tree. */ public static void main(String args[]) {&lt;/e&gt;&lt;/e&gt;&lt;br /&gt;
&amp;nbsp;BinarySearchTree&quot;&amp;lt;&quot;Integer&quot;&amp;gt;&quot;&lt;integer&gt; intBinaryTree = new BinarySearchTree&quot;&amp;lt;&quot;Integer&quot;&amp;gt;&quot;&lt;integer&gt;(15);&lt;/integer&gt;&lt;/integer&gt;&lt;br /&gt;
intBinaryTree.add(9);&amp;nbsp; intBinaryTree.add(5);&amp;nbsp; intBinaryTree.add(11);&lt;br /&gt;
intBinaryTree.add(4);&amp;nbsp; intBinaryTree.add(6);&amp;nbsp; intBinaryTree.add(10);&lt;br /&gt;
intBinaryTree.add(12);&amp;nbsp; intBinaryTree.add(25);&amp;nbsp; intBinaryTree.add(20);&lt;br /&gt;
intBinaryTree.add(30);&amp;nbsp; intBinaryTree.add(17);&amp;nbsp; intBinaryTree.add(21);&lt;br /&gt;
intBinaryTree.add(27);&amp;nbsp; intBinaryTree.add(35);&lt;br /&gt;
&lt;br /&gt;
initBinaryTree.printInorder();&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
For the Code of the TreeNode, see the &lt;a href=&quot;http://mynetsecurity.blogspot.in/2012/12/basic-treenode-structure-in-java-using.html&quot;&gt;other post in the tree label postings&lt;/a&gt;.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/2570607768210147856/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/2570607768210147856' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/2570607768210147856'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/2570607768210147856'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2012/12/java-way-to-write-tree.html' title='JAVA WAY TO WRITE TREE'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsPJPUMmlXzBDKo3zErZoiZT8Cx9wAcIZDsDQF6hGJDqym6yXGGtVuGhCkWN8MAX-_sjcs-dRQyxK4_lA_ztdKBmkTXfD6X6zZGFeNbg7obwRSODYYoE8Bdw_PsLkgGoaRtjggl_OjPIE/s72-c/BST.bmp" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-7139698836086216953</id><published>2012-10-04T13:25:00.000+05:30</published><updated>2012-10-04T20:55:17.614+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="csv"/><category scheme="http://www.blogger.com/atom/ns#" term="files"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Program"/><category scheme="http://www.blogger.com/atom/ns#" term="products"/><category scheme="http://www.blogger.com/atom/ns#" term="tools"/><title type='text'>How To Sort a File On the basis of the column Using Java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;color: red; font-family: Calibri;&quot;&gt;&lt;strong&gt;&lt;em&gt;&lt;u&gt;How To Sort a File On the basis of the column Using Java&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;br /&gt;
Java Program to sort the file.&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
In the earlier post we have seen how to sort the CSV file. Now, we will see the generalised java code to sort the file on the basis of particular column. This code can be used for any type of files, like csv, txt etc. This can be useful to sort the big files on the basis of the column. For using this code, we need to take care of few things:&lt;/div&gt;
The format of the file should be like in this format:&lt;br /&gt;
The header or the column should be there and should be the first line of the file, else we will missed the first line.&lt;br /&gt;
Header/Col1: Header/Col2 : Header/Col3&lt;br /&gt;
a :&amp;nbsp;c :&amp;nbsp;e&lt;br /&gt;
s&amp;nbsp;: a&amp;nbsp; : d&lt;br /&gt;
.. : .. : ...&lt;br /&gt;
&lt;strong&gt;Algorithm Used:&lt;/strong&gt;&lt;br /&gt;
It’s not the rocket science, we have keep it simple and have used the simple algorithm. The each row has been considered as one java object. The column on which we have to sort is taken as the key and against this key we have the associated row data java objects as values. We sort the key and display the respective values.&lt;br /&gt;
For example: If we have to sort the above file on column 2, we will create two java objects which will have values:&lt;br /&gt;
Java@Obj1: a,c,e&lt;br /&gt;
Java@Obj2: s,a,d&lt;br /&gt;
&lt;br /&gt;
Now, we are sorting on column 2, so for first row, key will be c and c will be mapped with the value Java@Obj1: a,c,e and for the second row: key will be a and a will be mapped with the value Java@Obj2: s,a,d. Now we will sort the keys, i.e. c and a and then we will display the mapped value for the sorted keys.&lt;br /&gt;
&lt;br /&gt;
Here is the Java Class Example:&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
import java.io.BufferedOutputStream;&lt;br /&gt;
import java.io.BufferedReader;&lt;br /&gt;
import java.io.FileOutputStream;&lt;br /&gt;
import java.io.FileReader;&lt;br /&gt;
import java.io.IOException;&lt;br /&gt;
import java.util.ArrayList;&lt;br /&gt;
import java.util.Collections;&lt;br /&gt;
import java.util.List;&lt;br /&gt;
import java.util.StringTokenizer;&lt;br /&gt;
import javax.swing.JOptionPane;&lt;br /&gt;
/**&lt;br /&gt;
* The File Sorter Algorithm.&lt;br /&gt;
* @author sonkum1&lt;br /&gt;
*&lt;br /&gt;
*/&lt;br /&gt;
public class CsvFileSorter {&lt;br /&gt;
private String filename;&lt;br /&gt;
private int index;&lt;br /&gt;
private List&lt;sorthelperclass&gt; list = new ArrayList&lt;sorthelperclass&gt;();&lt;/sorthelperclass&gt;&lt;/sorthelperclass&gt;&lt;br /&gt;
private String header;&lt;br /&gt;
private String outputFile;&lt;br /&gt;
private String separatorTokenizer = &quot;,&quot;; // By Default the Separator&lt;br /&gt;
// Tokenizer is &#39;,&#39; for CSV&lt;br /&gt;
// files.&lt;br /&gt;
/**&lt;br /&gt;
* &lt;br /&gt;
* @param filename : Path of the file&lt;br /&gt;
* @param index : The column number on which we want to sort the file.&lt;br /&gt;
*/&lt;br /&gt;
public CsvFileSorter(String filename, int index) {&lt;br /&gt;
this.filename = filename;&lt;br /&gt;
this.index = index;&lt;br /&gt;
try {&lt;br /&gt;
sorter();&lt;br /&gt;
} catch (IOException e) {&lt;br /&gt;
e.printStackTrace();&lt;br /&gt;
}}&lt;br /&gt;
/**&lt;br /&gt;
* &lt;br /&gt;
* @param filename : Path of the file&lt;br /&gt;
* @param index : The column number on which we want to sort the file.&lt;br /&gt;
* @param tokenizer : The column separator token like &#39;,&#39;, &#39;:&#39;, &#39;;&#39;, etc.&lt;br /&gt;
*/&lt;br /&gt;
public CsvFileSorter(String filename, int index, String tokenizer, String outputFile) {&lt;br /&gt;
this.filename = filename;&lt;br /&gt;
this.index = index;&lt;br /&gt;
this.separatorTokenizer = tokenizer;&lt;br /&gt;
this.outputFile = outputFile;&lt;br /&gt;
try {&lt;br /&gt;
sorter();&lt;br /&gt;
} catch (IOException e) {&lt;br /&gt;
e.printStackTrace();&lt;br /&gt;
}}&lt;br /&gt;
public void sorter() throws IOException {&lt;br /&gt;
FileReader f = new FileReader(filename);&lt;br /&gt;
BufferedReader br = new BufferedReader(f);&lt;br /&gt;
String str;&lt;br /&gt;
header = br.readLine(); // remove the Header&lt;br /&gt;
System.out.println(header);&lt;br /&gt;
do {&lt;br /&gt;
str = br.readLine();&lt;br /&gt;
if (str != null) {&lt;br /&gt;
createobject(str);&lt;br /&gt;
}}&lt;br /&gt;
while (str != null);&lt;br /&gt;
br.close(); f.close();&lt;br /&gt;
writeSort();&lt;br /&gt;
}&lt;br /&gt;
private void createobject(String str) {&lt;br /&gt;
SortHelperClass helperClass = new SortHelperClass(getIndex(str), str);&lt;br /&gt;
list.add(helperClass);&lt;br /&gt;
}&lt;br /&gt;
/**&lt;br /&gt;
* Will create a output file.&lt;br /&gt;
* @throws IOException&lt;br /&gt;
*/&lt;br /&gt;
public void writeSort() throws IOException {&lt;br /&gt;
Collections.sort(list);&lt;br /&gt;
FileOutputStream output = new FileOutputStream(outputFile);&lt;br /&gt;
BufferedOutputStream bf = new BufferedOutputStream(output);&lt;br /&gt;
bf.write(header.getBytes());&lt;br /&gt;
String newLine = &quot;\r\n&quot;;&lt;br /&gt;
bf.write(newLine.getBytes());&lt;br /&gt;
for (int i = 0; i &amp;lt; list.size(); i++) {&lt;br /&gt;
SortHelperClass helper = list.get(i);&lt;br /&gt;
bf.write(helper.getValue().getBytes());&lt;br /&gt;
bf.write(newLine.getBytes());&lt;br /&gt;
System.out.println(helper.getValue());&lt;br /&gt;
}&lt;br /&gt;
bf.flush();&lt;br /&gt;
bf.close();&lt;br /&gt;
output.flush();&lt;br /&gt;
output.close();&lt;br /&gt;
}&lt;br /&gt;
public String getIndex(String str) {&lt;br /&gt;
StringTokenizer token = new StringTokenizer(str, separatorTokenizer);&lt;br /&gt;
int i = 1;&lt;br /&gt;
while (token.hasMoreTokens()) {&lt;br /&gt;
if (i == index) {&lt;br /&gt;
return token.nextToken();&lt;br /&gt;
}&lt;br /&gt;
token.nextToken();&lt;br /&gt;
i++;&lt;br /&gt;
}&lt;br /&gt;
return null;&lt;br /&gt;
}&lt;br /&gt;
/**&lt;br /&gt;
* @param args&lt;br /&gt;
* @throws IOException&lt;br /&gt;
*/&lt;br /&gt;
public static void main(String[] args) throws IOException {&lt;br /&gt;
String file = &quot;C:\\Users\\sonukumar\\Desktop\\test.txt&quot;;&lt;br /&gt;
new CsvFileSorter(file, 4,&quot;,&quot;,file+&quot;_output.csv&quot;);&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
class SortHelperClass implements Comparable&lt;sorthelperclass&gt; {&lt;/sorthelperclass&gt;&lt;br /&gt;
private String key;&lt;br /&gt;
private String value;&lt;br /&gt;
public SortHelperClass(String key, String value) {&lt;br /&gt;
this.key = key;&lt;br /&gt;
this.value = value;&lt;br /&gt;
}&lt;br /&gt;
public String getKey() {&lt;br /&gt;
return key;&lt;br /&gt;
}&lt;br /&gt;
public String getValue() {&lt;br /&gt;
return value;&lt;br /&gt;
}&lt;br /&gt;
public int compareTo(SortHelperClass o) {&lt;br /&gt;
if(key == null)&lt;br /&gt;
JOptionPane.showMessageDialog(null, &quot;Please correct the Separator Tokenizer.&quot;);&lt;br /&gt;
return key.compareTo(o.key);&lt;br /&gt;
}}&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/7139698836086216953/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/7139698836086216953' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/7139698836086216953'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/7139698836086216953'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2012/10/how-to-sort-file-on-basis-of-column.html' title='How To Sort a File On the basis of the column Using Java'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-4183153478603466213</id><published>2012-08-30T12:22:00.000+05:30</published><updated>2012-08-30T12:22:04.640+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><title type='text'>Default Author Name in Eclipse</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;em&gt;&lt;u&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Default Author Name in Eclipse&lt;/span&gt;&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
By default, the Eclipse show the file author name as the Windows Id name. This is because, the eclipse read the ${user} variables value from the environment variables and display that variables. So we can change that default values in different name.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Different Ways:&lt;/strong&gt;&lt;br /&gt;
1) By changing the eclipse setting for that. Go to the &lt;br /&gt;
&amp;nbsp; Window --&amp;gt;Preferences --&amp;gt;Java --&amp;gt;Code Style --&amp;gt;Code Templates --&amp;gt;Comments&lt;br /&gt;
&amp;nbsp; Change the Comments format over there, like&lt;br /&gt;
&amp;nbsp;&amp;nbsp;If it is like this:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;/**&lt;br /&gt;
&amp;nbsp;&amp;nbsp;* @author ${user}&lt;br /&gt;
&amp;nbsp;&amp;nbsp;*&lt;br /&gt;
&amp;nbsp; * ${tags}&lt;br /&gt;
&amp;nbsp; */&lt;br /&gt;
&amp;nbsp; Romove this with:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;/**&lt;br /&gt;
&amp;nbsp; * @author Sonu Mishra&lt;br /&gt;
&amp;nbsp; *&lt;br /&gt;
&amp;nbsp; * ${tags}&lt;br /&gt;
&amp;nbsp; */&lt;br /&gt;
&lt;br /&gt;
2) Use the VM arguments &lt;strong&gt;-Duser.name=Sonu Mishra&lt;/strong&gt;. You can set this in the eclipse.ini files of eclipse.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/4183153478603466213/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/4183153478603466213' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/4183153478603466213'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/4183153478603466213'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2012/08/default-author-name-in-eclipse.html' title='Default Author Name in Eclipse'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-1705382858107531691</id><published>2012-05-15T11:16:00.001+05:30</published><updated>2012-05-17T21:51:42.332+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><title type='text'>Difference Between Eclipse Ganymede/Galileo/Helios/Indigo</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: red; font-family: Calibri;&quot;&gt;&lt;strong&gt;Difference Between Eclipse Ganymede/Galileo/Helios/Indigo&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;What &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;is the difference between Eclipse Ganymede/Galileo/Helios/Indigo?&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Basically those are just the different versions or the major release &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;of the eclipse. &lt;span style=&quot;mso-spacerun: yes;&quot;&gt;&amp;nbsp;&lt;/span&gt;So, instead of using the version number, they are using the name like helios or indigo. Since 2006, the Eclipse Foundation has coordinated an annual Simultaneous Release. So the different versions of eclipse till now are:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2N4IXOtvFagED2ypG9UD_2N1BD7iQdtrd0oeRg8dZx4hKEUmZndPxERaJnARNrWIyVx8-cOqItaM4VkLTpSHfu_gPP3LaYaxt5R4HgeUlUQjMbYbkrfbyYk8ZUO5TuqGGJn4BMs-9mrI/s1600/Eclipse+Versions.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;132&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2N4IXOtvFagED2ypG9UD_2N1BD7iQdtrd0oeRg8dZx4hKEUmZndPxERaJnARNrWIyVx8-cOqItaM4VkLTpSHfu_gPP3LaYaxt5R4HgeUlUQjMbYbkrfbyYk8ZUO5TuqGGJn4BMs-9mrI/s400/Eclipse+Versions.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/1705382858107531691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/1705382858107531691' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/1705382858107531691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/1705382858107531691'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2012/05/difference-between-eclipse.html' title='Difference Between Eclipse Ganymede/Galileo/Helios/Indigo'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2N4IXOtvFagED2ypG9UD_2N1BD7iQdtrd0oeRg8dZx4hKEUmZndPxERaJnARNrWIyVx8-cOqItaM4VkLTpSHfu_gPP3LaYaxt5R4HgeUlUQjMbYbkrfbyYk8ZUO5TuqGGJn4BMs-9mrI/s72-c/Eclipse+Versions.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-7465898331050510595</id><published>2012-05-14T18:28:00.000+05:30</published><updated>2012-05-17T21:49:51.533+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="window"/><title type='text'>Copy Paste In DOS Command Prompt Using Mouse</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #424242; font-family: &amp;quot;Tahoma&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; line-height: 115%;&quot;&gt;&lt;em&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;Copy Paste In DOS Command Prompt Using Mouse&lt;/span&gt;&lt;/u&gt;&lt;/em&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOOTlyaBAwUkM3FTryLA4N4fEidDbAzFc1_H5o9ywIX8CXyVBo580jYcV600XSsdrygH-TBv0t6yXXov9pnIfUGeuJjtXvD6becfPxI8vrovJVRQwQV23KVq9LFnWJdLg7cF-WklN32Pg/s1600/quick-edit.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; kba=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOOTlyaBAwUkM3FTryLA4N4fEidDbAzFc1_H5o9ywIX8CXyVBo580jYcV600XSsdrygH-TBv0t6yXXov9pnIfUGeuJjtXvD6becfPxI8vrovJVRQwQV23KVq9LFnWJdLg7cF-WklN32Pg/s1600/quick-edit.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #424242; font-family: &amp;quot;Tahoma&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; line-height: 115%;&quot;&gt;Copy/Paste in the DOS and Command Console is not easy. First you have to do the right-click and then select the data and then again do the right click and then paste the data. Now, in this post we will see the easier way that will allow the copy paste using the mouse.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;
&lt;span style=&quot;color: #424242; font-family: &amp;quot;Tahoma&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; line-height: 115%;&quot;&gt;After the trick, You will be able to select the data by highlighting the area by mouse and hitting the ‘Enter’ button will copy that highlighted area. To paste the copied thing, just right click the mouse and that will paste the thing.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;span style=&quot;color: #424242; font-family: &amp;quot;Tahoma&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; line-height: 115%;&quot;&gt;Follow the Below steps to configure the Console.&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 10pt;&quot;&gt;
&lt;span style=&quot;color: #424242; font-family: &amp;quot;Tahoma&amp;quot;, &amp;quot;sans-serif&amp;quot;; font-size: 10.5pt; line-height: 115%;&quot;&gt;1. Open a Command Prompt/Command Console.&lt;br /&gt;2. Right-click on the title bar.&lt;br /&gt;3. Select &lt;strong&gt;Properties&lt;/strong&gt;.&lt;br /&gt;4. Select &lt;strong&gt;QuickEdit Mode&lt;/strong&gt;.&lt;br /&gt;5. Select &lt;strong&gt;Save Properties for future windows with same title&lt;/strong&gt; if you want to make this a permanent change. Select &lt;strong&gt;Apply Properties for current window only&lt;/strong&gt; if you only want to enable QuickEdit for this session.&lt;br /&gt;6. Click &lt;strong&gt;OK&lt;/strong&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/7465898331050510595/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/7465898331050510595' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/7465898331050510595'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/7465898331050510595'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2012/05/copy-paste-in-dos-command-prompt-using.html' title='Copy Paste In DOS Command Prompt Using Mouse'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOOTlyaBAwUkM3FTryLA4N4fEidDbAzFc1_H5o9ywIX8CXyVBo580jYcV600XSsdrygH-TBv0t6yXXov9pnIfUGeuJjtXvD6becfPxI8vrovJVRQwQV23KVq9LFnWJdLg7cF-WklN32Pg/s72-c/quick-edit.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-4571627473804042637</id><published>2012-05-10T13:57:00.000+05:30</published><updated>2012-05-10T14:02:28.345+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="software"/><title type='text'>How To Sort The CSV File</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;How To Sort The CSV File:&lt;/span&gt;&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Always we came across at some point where we want to sort
the data, or we want to compare similar kind of data. So, in this post, we will
focus on some of the quick ways to sort the data of the CSV file. Windows provide
the SORT command, and using that command we can sort the data of the files. &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Sorting Using Windows SORT Command&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo1; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;mso-fareast-font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;1)&lt;/span&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;You
can use the sort command to sort the files. In the command prompt, type
following:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 72pt; mso-list: l0 level2 lfo1; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;mso-fareast-font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;a.&lt;/span&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;Sort&amp;nbsp; &lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; mso-ansi-language: EN-IN; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin;&quot;&gt;Input_filename&lt;/span&gt;&lt;/b&gt;&amp;nbsp; :
This will sort the file and will display the output on the console. This will
sort the file on the basis of first column. Let’s suppose your input is :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt 126pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;Input:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 144pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;1&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;
g&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;
k&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 144pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;3&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;
f&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;
d&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 144pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;2&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;
c&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;
a&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Output will be: &lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 144pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;sort&lt;/b&gt;
&lt;strong&gt;Book.csv&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 144pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;1,g,k&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 144pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;2,c,a&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 144pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;3,f,d&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 72pt; mso-list: l0 level2 lfo1; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;mso-fareast-font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;b.&lt;/span&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;Sort&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; mso-ansi-language: EN-IN; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin;&quot;&gt;Input filename &lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; mso-ansi-language: EN-IN; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin;&quot;&gt;Output Filename&lt;/span&gt;&lt;/span&gt;&lt;output filename=&quot;&quot;&gt;&amp;nbsp;: &lt;/output&gt;&lt;/b&gt;This will sort the input file data and will store the result
in the OutputFile.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt 126pt;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;Example:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
sort Book.csv&amp;nbsp; outputBook.csv&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 72pt; mso-list: l0 level2 lfo1; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;mso-fareast-font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;c.&lt;/span&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;Sort&amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; mso-ansi-language: EN-IN; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin;&quot;&gt;Input_filename &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; mso-ansi-language: EN-IN; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin;&quot;&gt;Output_Filename&lt;/span&gt;&lt;output filename=&quot;&quot;&gt; /+&lt;span style=&quot;font-family: &amp;quot;Calibri&amp;quot;,&amp;quot;sans-serif&amp;quot;; font-size: 11pt; mso-ansi-language: EN-IN; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin;&quot;&gt;Column_Number&lt;/span&gt;&lt;column_number&gt;: &lt;/column_number&gt;&lt;/output&gt;&lt;/b&gt;This will sort the file on the basis
of column number. If we provide column number as 2, it will sort the file on
the basis of column 2&lt;sup&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;nd&lt;/span&gt;&lt;/sup&gt; column. E.g.:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0cm 0cm 0pt 126pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;&lt;b&gt;sort Book.csv
/+2&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 144pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;2,c,a&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 144pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;3,f,d&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 144pt;&quot;&gt;
&lt;span style=&quot;font-family: Calibri;&quot;&gt;1,g,k&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo1; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;mso-fareast-font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;2)&lt;/span&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;You
can write the Customized &lt;b&gt;java&lt;/b&gt; written program also to sort as per
requirement. In the next post we will see the customized Java Program to sort
the files. This one is my favourite.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoListParagraph&quot; style=&quot;margin: 0cm 0cm 0pt 36pt; mso-list: l0 level1 lfo1; text-indent: -18pt;&quot;&gt;
&lt;span style=&quot;mso-fareast-font-family: Calibri;&quot;&gt;&lt;span style=&quot;mso-list: Ignore;&quot;&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;3)&lt;/span&gt;&lt;span style=&quot;font-size-adjust: none; font-stretch: normal; font: 7pt/normal &amp;quot;Times New Roman&amp;quot;;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Calibri;&quot;&gt;There
are several software’s available in the market for this and as well as other
purposes.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/4571627473804042637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/4571627473804042637' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/4571627473804042637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/4571627473804042637'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2012/05/how-to-sort-csv-file.html' title='How To Sort The CSV File'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-4684378810929763337</id><published>2012-04-26T20:55:00.000+05:30</published><updated>2012-04-26T20:56:44.579+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="sports"/><title type='text'>View Match Live Online</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
There are different websites which provide the luxury to watch the live matches online.&lt;br /&gt;
Here are few links. If you dont have the tv, don&#39;t worry, this will help you watch the matches live.&lt;br /&gt;
&lt;br /&gt;
1) &lt;a href=&quot;http://www.ipl.indiatimes.com/&quot;&gt;http://www.ipl.indiatimes.com/&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Provides Video&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is one over slower then live.&lt;br /&gt;
2) &lt;a href=&quot;http://www.crictime.com/watch-live-cricket-streaming.htm&quot;&gt;http://www.crictime.com/watch-live-cricket-streaming.htm&lt;/a&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Provides Video&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is faster one.&lt;br /&gt;
3) youtube.com&lt;br /&gt;
4) cricbuzz.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Only Webpage&amp;nbsp; faster one&lt;br /&gt;
5) cricinfo.com&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Only Webpage&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
Note:- This review is based on my&amp;nbsp;experiances.&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/4684378810929763337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/4684378810929763337' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/4684378810929763337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/4684378810929763337'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2012/04/view-match-live-online.html' title='View Match Live Online'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-7813371970425990423</id><published>2012-04-24T21:51:00.000+05:30</published><updated>2012-04-26T20:45:37.202+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Internet explorer"/><title type='text'>How To Bookmark WebPage In Browser</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;em&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;How To Bookmark WebPage In Browser&lt;/span&gt;&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTim9vX3yty2HcBaAVH1JVKyfcJAAxPxeGKFj4NIOKiFsHZeCIyB2Ns4_nfM3dgQ0P7lQKt64b94Wopf_tUmhjJM4HgfFe9fZURHOUiu8Clke1TR5wjASNxYEI-4BFQdzG1TfNUK1In-M/s1600/bookmark.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;171&quot; oda=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTim9vX3yty2HcBaAVH1JVKyfcJAAxPxeGKFj4NIOKiFsHZeCIyB2Ns4_nfM3dgQ0P7lQKt64b94Wopf_tUmhjJM4HgfFe9fZURHOUiu8Clke1TR5wjASNxYEI-4BFQdzG1TfNUK1In-M/s200/bookmark.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
This is quite simple but always we forgot to do this. In this post we will recall how to add the webpage to the bookmark or to add to favourites. By doing this, we save the link of the webpage for future reference. Here are the steps to do this:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;1)&lt;/strong&gt; Go to the page you want to bookmark/add to your favourites.&lt;br /&gt;
&lt;strong&gt;2)&lt;/strong&gt; Click Favorites in the top menu bar then Add to Favorites.&lt;br /&gt;
&lt;br /&gt;
Also you can use the &lt;strong&gt;Ctrl+D &lt;/strong&gt;button to bring the pop up in front.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;3)&lt;/strong&gt;The Add Favorite dialogue box appears. The title from the web page will be in the name box. Click the Create In button&lt;br /&gt;
&lt;strong&gt;4)&lt;/strong&gt; You can click OK button or can customize as per requirement.&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/7813371970425990423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/7813371970425990423' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/7813371970425990423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/7813371970425990423'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2012/04/how-to-bookmark-webpage-in-browser.html' title='How To Bookmark WebPage In Browser'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTim9vX3yty2HcBaAVH1JVKyfcJAAxPxeGKFj4NIOKiFsHZeCIyB2Ns4_nfM3dgQ0P7lQKt64b94Wopf_tUmhjJM4HgfFe9fZURHOUiu8Clke1TR5wjASNxYEI-4BFQdzG1TfNUK1In-M/s72-c/bookmark.jpg" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Pune, Maharashtra, India</georss:featurename><georss:point>18.5204303 73.8567437</georss:point><georss:box>18.3999798 73.6988152 18.6408808 74.014672199999993</georss:box></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-1765072835586282928</id><published>2012-02-05T21:19:00.003+05:30</published><updated>2012-02-05T21:21:47.520+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Blackberry"/><title type='text'>BlackBerry Storm Hangs</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL8-eu1ijxR6Crrax2BeBPoHqN-xOFwlmm0NvY2mNNsvlIiPxeRohxQIf2A0fpYjZEpJN-rsWmKeTjFU1FEgmBJJ9FDa3yzYDQrMd07DeC0f9_yV5C35IXTNa1ZJo5FCapqr0Mbgt4mTw/s1600/Black+Berry+Hanged.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; sda=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL8-eu1ijxR6Crrax2BeBPoHqN-xOFwlmm0NvY2mNNsvlIiPxeRohxQIf2A0fpYjZEpJN-rsWmKeTjFU1FEgmBJJ9FDa3yzYDQrMd07DeC0f9_yV5C35IXTNa1ZJo5FCapqr0Mbgt4mTw/s200/Black+Berry+Hanged.jpg&quot; width=&quot;140&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;strong&gt;&lt;u&gt;&lt;em&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;BlackBerry Storm Hangs&lt;/span&gt;&lt;/em&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
The Blackberry Storm has one one drawback, it consumes the application memory too much. Because of this the application memory becomes zero, and the mobile hangs too much. Atleast I have experienced this problem on my Storm.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Problem:&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;===========&lt;/strong&gt;&lt;br /&gt;
1) Mobile Hangs.&lt;br /&gt;
2) Take too much time to open any application.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Reason:&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;===========&lt;/strong&gt;&lt;br /&gt;
1) The Application memory is consumed and there is 0mb for Application memory.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can check the application memory by navigating to :&lt;br /&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; &lt;strong&gt;Options------&amp;gt;Memory&lt;/strong&gt;&lt;br /&gt;
2) Even after uninstalling the applications, it doesn&#39;t increase the application memory.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Solution:&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;========&lt;/strong&gt;&lt;br /&gt;
1) Remove the battery of the blackberry storm for some time and then put it back and then restart the Storm.&lt;br /&gt;
2) Problem is solved.&lt;br /&gt;
If u have some better sol, please post it back..&amp;nbsp;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/1765072835586282928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/1765072835586282928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/1765072835586282928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/1765072835586282928'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2012/02/blackberry-storm-hangs.html' title='BlackBerry Storm Hangs'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhL8-eu1ijxR6Crrax2BeBPoHqN-xOFwlmm0NvY2mNNsvlIiPxeRohxQIf2A0fpYjZEpJN-rsWmKeTjFU1FEgmBJJ9FDa3yzYDQrMd07DeC0f9_yV5C35IXTNa1ZJo5FCapqr0Mbgt4mTw/s72-c/Black+Berry+Hanged.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-3125253584972160627</id><published>2012-01-30T21:15:00.001+05:30</published><updated>2012-01-30T21:18:31.009+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>How To Resolve Argument Too Long Error In Unix</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;em&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;How To Resolve Argument Too Long Error In Unix&lt;/span&gt;&lt;/em&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFEoZwI22VTGK-u8E1mIMiDLC_XG9vJ4h-aNC8x3FaAr3CazuUBKwr27zp5PSdvzxG8UlJd2HmpBP2LZnQIZVYSu1UYxn-4SLZ1tl4GiyCfqjDl23ccp70xR_L-eWUkj3GAGIZmV92rwU/s1600/argument_Too_Long.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; gda=&quot;true&quot; height=&quot;104&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFEoZwI22VTGK-u8E1mIMiDLC_XG9vJ4h-aNC8x3FaAr3CazuUBKwr27zp5PSdvzxG8UlJd2HmpBP2LZnQIZVYSu1UYxn-4SLZ1tl4GiyCfqjDl23ccp70xR_L-eWUkj3GAGIZmV92rwU/s320/argument_Too_Long.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Sometime, when we fire some commands in the unix, then it gives the &#39;Argument Too Long Error&#39; on the console. We get this error when there is lots of file, suppose there are 15k files and we want to move those file or delete those files, then it gives the same error.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;How To Resolve:&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
To resolve these error, we will use the find commands and will pass the remove command as a argument to the find command.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;find . -name &#39;*.*&#39; xargs rm&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;.&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : is directory name&lt;br /&gt;
&lt;strong&gt;-name&lt;/strong&gt;&amp;nbsp; : is type of file that we want to delete.&lt;br /&gt;
&lt;strong&gt;xargs&lt;/strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; : is Linux command that makes passing a number of arguments to a command easier.&lt;br /&gt;
&lt;br /&gt;
Hope, this will solve your problem.&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/3125253584972160627/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/3125253584972160627' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/3125253584972160627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/3125253584972160627'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2012/01/how-to-resolve-argument-too-long-error.html' title='How To Resolve Argument Too Long Error In Unix'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFEoZwI22VTGK-u8E1mIMiDLC_XG9vJ4h-aNC8x3FaAr3CazuUBKwr27zp5PSdvzxG8UlJd2HmpBP2LZnQIZVYSu1UYxn-4SLZ1tl4GiyCfqjDl23ccp70xR_L-eWUkj3GAGIZmV92rwU/s72-c/argument_Too_Long.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-2972303428825286660</id><published>2012-01-12T21:27:00.000+05:30</published><updated>2012-01-12T21:27:13.401+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Hacking"/><category scheme="http://www.blogger.com/atom/ns#" term="HACKING TOOLS"/><category scheme="http://www.blogger.com/atom/ns#" term="Virus"/><title type='text'>New Malware That Empty Your Bank Account</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;strong&gt;&lt;em&gt;&lt;u&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;New Malware That Empty Your Bank Account&lt;/span&gt;&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrJuKQjcrWQyWih_4_-bgdVP7h996BfhFtu2h3damGBTVQYHaCKPMbWa9hi3YlFj9C9RalaSxHX93Az49ehPl6Idn1OefwhFXTKPuMmr1GEMU4h0pqAt5vNGEvouPsIa-i4pIJhSSD59g/s1600/save+ur+money.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;132&quot; kba=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrJuKQjcrWQyWih_4_-bgdVP7h996BfhFtu2h3damGBTVQYHaCKPMbWa9hi3YlFj9C9RalaSxHX93Az49ehPl6Idn1OefwhFXTKPuMmr1GEMU4h0pqAt5vNGEvouPsIa-i4pIJhSSD59g/s200/save+ur+money.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;New Malware has been created by the hackers that can steal usernames and passwords and defeat common methods of user authentication employed by financial institutions. The important point is that it updates the bank account transaction virtually and it becomes really impossible for the account holder&amp;nbsp;to know if the account has been hacked or not, as it doesn&#39;t show any changes in the transaction.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;How it Works:&lt;/strong&gt;&lt;br /&gt;
Through the fake mail like for job email, free game download or get&amp;nbsp;unsolicited e-mail from NACHA, the Federal Reserve, or the FDIC telling him or her that there is a problem with his or her bank account or a recent ACH (Automated Clearing House) transaction. The message includes a link in the e-mail that will supposedly help resolve whatever the issue is.&quot;Unfortunately, the link goes to a phony website, and once you’re there, you inadvertently download the Gameover malware, which promptly infects your computer and steals your banking information,&quot; the FBI said.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Prevent:&lt;/strong&gt;&lt;br /&gt;
The best way to prevent this fraud way of money laundering is to keep your eyes open. Don&#39;t ever clicked on any email link from unknown source or if it is asking for bank information. Verify before clicking the link. Don&#39;t&amp;nbsp;disclose your Bank related Information on the internet. &lt;br /&gt;
Have A Happy Internet Banking :) &lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/2972303428825286660/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/2972303428825286660' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/2972303428825286660'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/2972303428825286660'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2012/01/new-malware-that-empty-your-bank.html' title='New Malware That Empty Your Bank Account'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrJuKQjcrWQyWih_4_-bgdVP7h996BfhFtu2h3damGBTVQYHaCKPMbWa9hi3YlFj9C9RalaSxHX93Az49ehPl6Idn1OefwhFXTKPuMmr1GEMU4h0pqAt5vNGEvouPsIa-i4pIJhSSD59g/s72-c/save+ur+money.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-3104038636437437542</id><published>2012-01-08T13:43:00.000+05:30</published><updated>2012-01-08T13:43:46.068+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>Java Unsupported Class Version Error-II</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;em&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Java Unsupported Class Version Error - II&lt;/span&gt;&lt;/em&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
In the last post we have seen about the Java Unsupported Class Version. In this post we will see more on that.&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;strong&gt;What is UnSupportedClassVersionError in Java?&lt;/strong&gt; &lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
Java.lang.UnsupportedClassVersionError is a subclass of java.lang.ClassFormatError. This is a kind of linking error which occurs during linking phase accordingly java.lang.ClassFormatError has also derived from java.lang.LinkageError. As the name suggests &quot;UnSupportedClassVersionError&quot; so it’s related to unsupported class version, now questions comes what is class version in Java? Well every source file is compiled into class file and each class file has two versions associated with it, major version and minor version. Version of class file is represented as major_version.minor_version. This version is used to determine format of class file in Java.&lt;br /&gt;
According to Java Virtual Machine specification, “A JVM implementation can support a class file format of version v if and only if v lies in some contiguous range Mi.0 v Mj.m. Only Sun can specify what range of versions a JVM implementation conforming to a certain release level of the Java platform may support.” For example: JDK 1.2 supports class file formats from version 45.0 to version 46.0 inclusive. So if a class file has version 48.0 it means that major version of class file is &quot;48&quot; and minor version is &quot;0&quot;, which tells us that JDK 1.4 has been used to compile and generate that class file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;strong&gt;How to fix UnSupportedClassVersionError&lt;/strong&gt; &lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
Now we know the root cause of UnSupportedClassVersionError that we are using a lower JVM for running the program. But major problem is that stack trace of UnSupportedClassVersionError will not tell you for which class it’s coming. So if you are using multiple third party jars in your application you find that it comes at a particular part when JVM tries to load a class from a particular jar. anyway we all know that latest version of JDK is 1.6 so maximum version of class file could be generated by JDK 6, so by using JDK 6 we can solve UnSupportedClassVersionError, but many times its not easy to just move to higher JDK version. So I would suggest:&lt;br /&gt;
1) Find out due to which jar or class file this UnSupportedClassVersionError is coming? &lt;br /&gt;
2) Try to compile source code of that jar with the JDK version you are using to run your program, if source is available. &lt;br /&gt;
3) If you don&#39;t have source try to find the compatible version of that library. &lt;br /&gt;
4) Increase the JRE version you are using to run your program.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;u&gt;When UnSupportedClassVersionError in Java comes: &lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So now we got the theory behind class file format and major and minor version of class file in Java. Now a million dollar question is when UnSupportedClassVersionError in Java does occur? precise answer of this is &quot;When JVM tries to load a class and found that class file version is not supported it throws UnSupportedClassVersionError and it generally occurs if a higher JDK version is used to compile the source file and a lower JDK version is used to run the program. for example if you compile your java source file in JDK 1.5 and you will try to run it on JDK 1.4 you will get error &quot;java.lang.UnsupportedClassVersionError: Bad version number in .class file [at java.lang.ClassLoader.defineClass1(Native Method)]&quot;.&lt;br /&gt;
But its important to note is that vice-versa is not true &quot;you can compile your program in J2SE 1.4 and run on J2SE 1.5 and you will not get any UnSupportedClassVersionError&quot;. When a higher JDK is used for compilation it creates class file with higher version and when a lower JDK is used to run the program it found that higher version of class file not supported at JVM &lt;span style=&quot;font-family: Verdana; font-size: xx-small;&quot;&gt;level and results in java.lang.UnsupportedClassVersionError&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;&lt;strong&gt;Major Class Versions of Various JDK&lt;/strong&gt; &lt;/u&gt;&lt;br /&gt;
Following are the major version of class file format in standard JDK environment.&lt;br /&gt;
JDK 1.1 = 45&lt;br /&gt;
JDK 1.2 = 46&lt;br /&gt;
JDK 1.3 = 47&lt;br /&gt;
JDK 1.4 = 48&lt;br /&gt;
JDK 1.5 = 49&lt;br /&gt;
JDK 1.6 = 50&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/3104038636437437542/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/3104038636437437542' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/3104038636437437542'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/3104038636437437542'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2012/01/java-unsupported-class-version-error-ii.html' title='Java Unsupported Class Version Error-II'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-6804742233960260022</id><published>2012-01-05T20:43:00.008+05:30</published><updated>2012-01-05T21:00:53.920+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>Java Unsupported Class Version Error</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;strong&gt;&lt;em&gt;&lt;u&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;Java Unsupported Class Version Error&lt;/span&gt;&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Java Unsupported Class Version Error&amp;nbsp;occurs when we try to compile&amp;nbsp;the class which has a jar file attached&amp;nbsp;in its classpath and that jar file has been compiled with higher version of java then the one with which&amp;nbsp;&amp;nbsp;we are trying to compile the class.&lt;br /&gt;
&lt;br /&gt;
This error comes on using different java versions for compilation and execution of java program. Therefore set the path of one java version and use it for compilation and execution.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;java.lang.UnsupportedClassVersionError:&amp;nbsp;XXXX (Unsupported major.minor version 49.0)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.ClassLoader.defineClass0(Native Method)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.ClassLoader.defineClass(ClassLoader.java:539)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.URLClassLoader.access$100(URLClassLoader.java:55)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.URLClassLoader$1.run(URLClassLoader.java:194)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.security.AccessController.doPrivileged(Native Method)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.net.URLClassLoader.findClass(URLClassLoader.java:187)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:289)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:235)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;If you get the above errors, do the following: &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1) Check the jar file attached in the classpath.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2) Use the higher version (or equal but not lesser)&amp;nbsp;of java for compiling the class then used for creating &amp;nbsp;the jar.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;3) Set the path of one java version and use it for compilation and execution.&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/6804742233960260022/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/6804742233960260022' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/6804742233960260022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/6804742233960260022'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2012/01/java-unsupported-class-version-error.html' title='Java Unsupported Class Version Error'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-8778059137904490267</id><published>2011-12-27T20:39:00.000+05:30</published><updated>2011-12-27T20:39:18.616+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft"/><category scheme="http://www.blogger.com/atom/ns#" term="Win XP"/><title type='text'>Speed Up The File Search Indexing</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;Speed Up The File Search Indexing&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
We can configure the indexing of windows to make the search fast. We can exclude the zip file while searching.&amp;nbsp;We can do this&amp;nbsp;in following ways:&lt;br /&gt;
&lt;br /&gt;
From the Start menu&#39;s Run dialog, enter this command: &lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;regsvr32 /u zipfldr.dll&lt;/strong&gt;. &lt;br /&gt;
then enter &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;strong&gt; regsvr32 /u cabview.dll&lt;/strong&gt;. &lt;br /&gt;
Then restart the windows.&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;Completely Disable Indexing&lt;/strong&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuDSQ4nOck3B0zD3QFO4CV9AwUZvsf6PRbUYuhwI2uyzHpmmL7aP0K7MoUgCzkBZ5-xvrzzx-oXMWizo_KtHuG8GmE3Vpm9SQrdDL5gH8BJUWeIu1FO2oHItDFe-QgepEoGoYpwApTI5I/s1600/disable+search.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; rea=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuDSQ4nOck3B0zD3QFO4CV9AwUZvsf6PRbUYuhwI2uyzHpmmL7aP0K7MoUgCzkBZ5-xvrzzx-oXMWizo_KtHuG8GmE3Vpm9SQrdDL5gH8BJUWeIu1FO2oHItDFe-QgepEoGoYpwApTI5I/s320/disable+search.png&quot; width=&quot;288&quot; /&gt;&lt;/a&gt;&lt;/div&gt;If you’d prefer to completely disable the indexing service, you can disable it entirely by turning off the service.&lt;br /&gt;
&lt;br /&gt;
Open up Services through control panel, or by typing services.msc into the start menu search box. Find “Windows Search” in the list of services and double-click on it to open it.Change the Startup type of the service to Disabled, and then click the Stop button to stop the service.&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/8778059137904490267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/8778059137904490267' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/8778059137904490267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/8778059137904490267'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2011/12/speed-up-file-search-indexing.html' title='Speed Up The File Search Indexing'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhuDSQ4nOck3B0zD3QFO4CV9AwUZvsf6PRbUYuhwI2uyzHpmmL7aP0K7MoUgCzkBZ5-xvrzzx-oXMWizo_KtHuG8GmE3Vpm9SQrdDL5gH8BJUWeIu1FO2oHItDFe-QgepEoGoYpwApTI5I/s72-c/disable+search.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-2765248163232041427</id><published>2011-02-21T14:04:00.000+05:30</published><updated>2011-02-21T14:04:45.126+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="remote desktop"/><title type='text'>Transfer File Using Remote Desktop</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;&lt;span style=&quot;color: #cc0000; font-family: Calibri;&quot;&gt;&lt;strong&gt;&lt;em&gt;&lt;u&gt;Transfer File Using Remote Desktop&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 10pt;&quot;&gt;We can share our local disk and make the local disk available on the remote desktop for file transferring and some other purposes. To make the local disk available/share for remote desktop, do the following.&lt;/div&gt;1) Type mstsc in command prompt.&lt;br /&gt;
2) A Remote Desktop Connection Pop up will appear. Click on the options button of that pop up.&lt;br /&gt;
3) Click on Local Resources tab and select the Disk Drives check box and then click on connect.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihhmBC133F8Jws9CHRqTJnnSOjSJcJjzXZwO1IRVSGpaEoGbBC3vrYnHMxwR90OcDPzV_HAlTCO-qm2WlwCYNix1Nozm-mrhpFrcTNNBkmI_MP3tJoRn8yavE0rEW-Cccf7xMJP5mPC5E/s1600/remote_dsktop.bmp&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;256&quot; j6=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihhmBC133F8Jws9CHRqTJnnSOjSJcJjzXZwO1IRVSGpaEoGbBC3vrYnHMxwR90OcDPzV_HAlTCO-qm2WlwCYNix1Nozm-mrhpFrcTNNBkmI_MP3tJoRn8yavE0rEW-Cccf7xMJP5mPC5E/s320/remote_dsktop.bmp&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;
After this we will be able to see the our ( local )drives on the remote desktop, and can copy the files as per need.&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/2765248163232041427/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/2765248163232041427' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/2765248163232041427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/2765248163232041427'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2011/02/transfer-file-using-remote-desktop.html' title='Transfer File Using Remote Desktop'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihhmBC133F8Jws9CHRqTJnnSOjSJcJjzXZwO1IRVSGpaEoGbBC3vrYnHMxwR90OcDPzV_HAlTCO-qm2WlwCYNix1Nozm-mrhpFrcTNNBkmI_MP3tJoRn8yavE0rEW-Cccf7xMJP5mPC5E/s72-c/remote_dsktop.bmp" height="72" width="72"/><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-7173151386627094042</id><published>2010-11-18T17:29:00.000+05:30</published><updated>2010-11-18T17:29:24.154+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft"/><title type='text'>How to print on both side of page in printer</title><content type='html'>&lt;strong&gt;&lt;em&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;How to print on both side of page in printer&lt;/span&gt;&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;1) Click ctrl+P o bring the print interface.&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;2) Click on the Properties or the Preferences button in that print page which comes after first steps.&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;3) Go on to the Finishing Tab.&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;4) There is a header &#39;Print Style&#39; and below that is a drop down box.There are three options in that dropdown:-&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;1)&lt;/strong&gt; 1-sided Printing :- To print on one sode of page&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;2)&lt;/strong&gt; 2-sided Printing :- To print on both side of page.&lt;/div&gt;&lt;div style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;strong&gt;3)&lt;/strong&gt; Booklet Printing :- To print in the book Style. &lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi08aZknmW4Lom2OnPRPdhKNDdKvzvAd7XBj6arXZ2duMan3ibPvAEKJRbpJSip-k39lzP8OSlc5hZuhxFDR9E6srpq9-uKkvOWxNsLWJfNCkcuatF3FCi9hKVFxq8IBgtr-3-ULrQjBC8/s1600/printing+tips.JPG&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; ox=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi08aZknmW4Lom2OnPRPdhKNDdKvzvAd7XBj6arXZ2duMan3ibPvAEKJRbpJSip-k39lzP8OSlc5hZuhxFDR9E6srpq9-uKkvOWxNsLWJfNCkcuatF3FCi9hKVFxq8IBgtr-3-ULrQjBC8/s320/printing+tips.JPG&quot; width=&quot;259&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/7173151386627094042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/7173151386627094042' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/7173151386627094042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/7173151386627094042'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2010/11/how-to-print-on-both-side-of-page-in.html' title='How to print on both side of page in printer'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi08aZknmW4Lom2OnPRPdhKNDdKvzvAd7XBj6arXZ2duMan3ibPvAEKJRbpJSip-k39lzP8OSlc5hZuhxFDR9E6srpq9-uKkvOWxNsLWJfNCkcuatF3FCi9hKVFxq8IBgtr-3-ULrQjBC8/s72-c/printing+tips.JPG" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-8927885508311686693</id><published>2010-10-15T16:58:00.000+05:30</published><updated>2010-10-15T16:58:44.803+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="mail"/><category scheme="http://www.blogger.com/atom/ns#" term="Yahoo"/><title type='text'>Using Filters to Sort Incoming Email In YAHOO</title><content type='html'>&lt;strong&gt;&lt;em&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;Using Filters to Sort Incoming Email&lt;/span&gt;&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwJWUBYzB9uG2I8hc4cPvZBFAmzxPRe2JmWDTNqQpeuAO4mccBHneGNI4Rw1DXG9z2snoENEYm3vWrOaY31oOL60AbBeQ9AHcc9iD3CWWMsWj5FdTK_aSZsP46MstP4WdzKI5LzvLyrvo/s1600/Yahoo+Icon.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; cssfloat: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; ex=&quot;true&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwJWUBYzB9uG2I8hc4cPvZBFAmzxPRe2JmWDTNqQpeuAO4mccBHneGNI4Rw1DXG9z2snoENEYm3vWrOaY31oOL60AbBeQ9AHcc9iD3CWWMsWj5FdTK_aSZsP46MstP4WdzKI5LzvLyrvo/s1600/Yahoo+Icon.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Yahoo! Mail lets you create &lt;span class=&quot;def&quot; id=&quot;personalfolder&quot;&gt;personal folders&lt;/span&gt; in which to organize your messages&amp;nbsp;.You can create a filter—a set of rules and a destination—that instructs Yahoo! Mail to automatically deliver incoming messages to the folder of your choice. Each filter has one or more rules and a destination folder. When an email message satisfies the rules, the filter delivers the message into the destination folder. &lt;br /&gt;
&lt;br /&gt;
Follow the below steps:&lt;br /&gt;
1) In the upper-right corner of your Yahoo! Mail page, click the Options link, then select Mail Options / More Options&amp;nbsp;&amp;nbsp;from the menu.&lt;br /&gt;
2) On the left side of the page, click the Filters link.&lt;br /&gt;
3) On the top of the Filters page, click the Add Filter button.&lt;br /&gt;
4) A page appears where you can define the rule and the destination for the new filter.&lt;br /&gt;
5) Fill the form.&lt;br /&gt;
6) Save the changes.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/8927885508311686693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/8927885508311686693' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/8927885508311686693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/8927885508311686693'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2010/10/using-filters-to-sort-incoming-email-in.html' title='Using Filters to Sort Incoming Email In YAHOO'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwJWUBYzB9uG2I8hc4cPvZBFAmzxPRe2JmWDTNqQpeuAO4mccBHneGNI4Rw1DXG9z2snoENEYm3vWrOaY31oOL60AbBeQ9AHcc9iD3CWWMsWj5FdTK_aSZsP46MstP4WdzKI5LzvLyrvo/s72-c/Yahoo+Icon.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-1000404832549064745</id><published>2010-08-25T15:39:00.000+05:30</published><updated>2010-08-25T15:39:55.199+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Internet explorer"/><category scheme="http://www.blogger.com/atom/ns#" term="office"/><title type='text'>See Cricket live score in Office</title><content type='html'>&lt;strong&gt;&lt;em&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;See Cricket live score in Office:&lt;/span&gt;&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Unable to open the cricinfo.com to view the live scorecard. Try the following links:&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://scores.sify.com/index.shtml&quot;&gt;http://scores.sify.com/index.shtml&lt;/a&gt;&lt;br /&gt;
&lt;a href=&quot;http://in.wap.yahoo.com/p/cricket-india/LiveScore?match=1&quot;&gt;http://in.wap.yahoo.com/p/cricket-india/LiveScore?match=1&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Even these sites are not opening then try &lt;strong&gt;igoogle&lt;/strong&gt;.&lt;br /&gt;
Still u r not able to view the score then only option is to try &lt;strong&gt;search cricket online/live score on google&lt;/strong&gt;.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/1000404832549064745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/1000404832549064745' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/1000404832549064745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/1000404832549064745'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2010/08/see-cricket-live-score-in-office.html' title='See Cricket live score in Office'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8875929270958029587.post-2010404590166009322</id><published>2010-08-19T15:26:00.000+05:30</published><updated>2010-08-19T15:26:58.633+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><title type='text'>Getting Java Compilation Error</title><content type='html'>&lt;strong&gt;&lt;em&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;Getting Java Compilation Error When Compiling JDBC with java 1.5&lt;/span&gt;&lt;/u&gt;&lt;/em&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black;&quot;&gt;When we try to compile&amp;nbsp; some java project with Java 1.5 compiler, we get the error &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;[javac] import oracle.sql.ARRAY;&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;[javac]&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^&lt;/strong&gt;&lt;br /&gt;
&lt;strong&gt;[javac] 1 error&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
This is because java 1.5 compiler doesn&#39;t support oracle.sql.ARRAY, so to remove this compilation error we need to upgrade the java compiler from 1.5 to java 1.6. The Java compiler 1.6 support all this classes as well as the old classes of java 1.5. Java 1.6 can be downloaded from Java Sun website.&lt;div class=&quot;blogger-post-footer&quot;&gt;&lt;script type=&quot;text/javascript&quot;&gt;
google_ad_client = &quot;pub-9306317050997018&quot;;
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = &quot;468x15_0ads_al&quot;;
google_ad_channel = &quot;9008475602+7081782465&quot;;
google_color_border = &quot;FFFFCC&quot;;
google_color_bg = &quot;FFFFCC&quot;;
google_color_link = &quot;000033&quot;;
google_color_text = &quot;000000&quot;;
google_color_url = &quot;008000&quot;;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mynetsecurity.blogspot.com/feeds/2010404590166009322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/8875929270958029587/2010404590166009322' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/2010404590166009322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8875929270958029587/posts/default/2010404590166009322'/><link rel='alternate' type='text/html' href='http://mynetsecurity.blogspot.com/2010/08/getting-java-compilation-error.html' title='Getting Java Compilation Error'/><author><name>SONU MISHRA</name><uri>http://www.blogger.com/profile/06786070378194577532</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>