<?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: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-5905642014094604461</id><updated>2011-04-21T16:46:11.109-07:00</updated><title type='text'>Lonely Island</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://everph.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5905642014094604461/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://everph.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>EverPh</name><uri>http://www.blogger.com/profile/09946640127773047786</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5905642014094604461.post-7301517560805688879</id><published>2011-01-19T04:23:00.000-08:00</published><updated>2011-01-19T04:26:59.850-08:00</updated><title type='text'>Java Inner Class</title><content type='html'>&lt;div style="background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: rgb(253, 253, 253); "&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="font-size: 14px;"&gt;There’s another twist. When you create an inner class, an object of that inner class has a link to the enclosing object that made it, and so it can access the members of that enclosing object—without any special qualifications. In addition, inner classes have access rights to all the elements in the enclosing class.At first, the creation of SequenceSelector looks like just another inner class. But examine it closely. Note that each of the methods—end( ), current( ), and next( )—refers to items, which is a reference that isn’t part of SequenceSelector, but is instead a private field in the enclosing class. However, the inner class can access methods and fields from the enclosing class as if it owned them.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="source" style="font-family: None, Consolas, 'Lucida Console', 'Courier New'; color: rgb(0, 0, 0); background-color: rgb(247, 239, 231); font-size: 14px; "&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;01&lt;/span&gt; &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;interface&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;Selector&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;02&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;boolean&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;end&lt;/span&gt;();&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;03&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;04&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 0); "&gt;Object&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;current&lt;/span&gt;();&lt;br /&gt;&lt;span style="color: rgb(248, 16, 176); "&gt;05&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;06&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;void&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;next&lt;/span&gt;();&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;07&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;08&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;09&lt;/span&gt; &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;class&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;Sequence&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(248, 16, 176); "&gt;10&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;Object&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;[]&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;items&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;11&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;int&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;next&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255); "&gt;0&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;12&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;13&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;Sequence&lt;/span&gt;(&lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;int&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;size&lt;/span&gt;) &lt;span style="color: rgb(0, 0, 0); "&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;14&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 0); "&gt;items&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;new&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;Object&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;size&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(248, 16, 176); "&gt;15&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 0); "&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;16&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;17&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;void&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;add&lt;/span&gt;(&lt;span style="color: rgb(0, 0, 0); "&gt;Object&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;x&lt;/span&gt;) &lt;span style="color: rgb(0, 0, 0); "&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;18&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;if&lt;/span&gt; (&lt;span style="color: rgb(0, 0, 0); "&gt;next&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;&lt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;items&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;.&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); "&gt;length&lt;/span&gt;)&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;19&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 0); "&gt;items&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;next&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;++]&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;x&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(248, 16, 176); "&gt;20&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 0); "&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;21&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;22&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;class&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;SequenceSelector&lt;/span&gt; &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;implements&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;Selector&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;23&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;private&lt;/span&gt; &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;int&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;i&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255); "&gt;0&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;24&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(248, 16, 176); "&gt;25&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;boolean&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;end&lt;/span&gt;() &lt;span style="color: rgb(0, 0, 0); "&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;26&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;return&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;i&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;==&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;items&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;.&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); "&gt;length&lt;/span&gt;;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;27&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 0); "&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;28&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;29&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;Object&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;current&lt;/span&gt;() &lt;span style="color: rgb(0, 0, 0); "&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(248, 16, 176); "&gt;30&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;return&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;items&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;[&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;i&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;];&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;31&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 0); "&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;32&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;33&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;void&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;next&lt;/span&gt;() &lt;span style="color: rgb(0, 0, 0); "&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;34&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;if&lt;/span&gt; (&lt;span style="color: rgb(0, 0, 0); "&gt;i&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;&lt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;items&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;.&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); "&gt;length&lt;/span&gt;)&lt;br /&gt;&lt;span style="color: rgb(248, 16, 176); "&gt;35&lt;/span&gt;                 &lt;span style="color: rgb(0, 0, 0); "&gt;i&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;++;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;36&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 0); "&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;37&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 0); "&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;38&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;39&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;Selector&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;selector&lt;/span&gt;() &lt;span style="color: rgb(0, 0, 0); "&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(248, 16, 176); "&gt;40&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;return&lt;/span&gt; &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;new&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;SequenceSelector&lt;/span&gt;();&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;41&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 0); "&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;42&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;43&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;public&lt;/span&gt; &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;static&lt;/span&gt; &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;void&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;main&lt;/span&gt;(&lt;span style="color: rgb(0, 0, 0); "&gt;String&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;[]&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;args&lt;/span&gt;) &lt;span style="color: rgb(0, 0, 0); "&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;44&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 0); "&gt;Sequence&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;sequence&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;new&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;Sequence&lt;/span&gt;(&lt;span style="color: rgb(0, 0, 255); "&gt;10&lt;/span&gt;);&lt;br /&gt;&lt;span style="color: rgb(248, 16, 176); "&gt;45&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;for&lt;/span&gt; (&lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;int&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;i&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255); "&gt;0&lt;/span&gt;; &lt;span style="color: rgb(0, 0, 0); "&gt;i&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;&lt;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255); "&gt;10&lt;/span&gt;; &lt;span style="color: rgb(0, 0, 0); "&gt;i&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;++)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;46&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 0); "&gt;sequence&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;.&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); "&gt;add&lt;/span&gt;(&lt;span style="color: rgb(0, 0, 0); "&gt;Integer&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;.&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); "&gt;toString&lt;/span&gt;(&lt;span style="color: rgb(0, 0, 0); "&gt;i&lt;/span&gt;));&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;47&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 0); "&gt;Selector&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;selector&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;=&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;sequence&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;.&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); "&gt;selector&lt;/span&gt;();&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;48&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 128); font-weight: bold; "&gt;while&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;(!&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;selector&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;.&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); "&gt;end&lt;/span&gt;()) &lt;span style="color: rgb(0, 0, 0); "&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;49&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 0); "&gt;System&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;.&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); "&gt;out&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;.&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); "&gt;print&lt;/span&gt;(&lt;span style="color: rgb(0, 0, 0); "&gt;selector&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;.&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); "&gt;current&lt;/span&gt;() &lt;span style="color: rgb(0, 0, 0); "&gt;+&lt;/span&gt; &lt;span style="color: rgb(0, 0, 255); "&gt;" "&lt;/span&gt;);&lt;br /&gt;&lt;span style="color: rgb(248, 16, 176); "&gt;50&lt;/span&gt;             &lt;span style="color: rgb(0, 0, 0); "&gt;selector&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;.&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0); "&gt;next&lt;/span&gt;();&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;51&lt;/span&gt;         &lt;span style="color: rgb(0, 0, 0); "&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;52&lt;/span&gt;     &lt;span style="color: rgb(0, 0, 0); "&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 136, 0); font-style: italic; "&gt;53&lt;/span&gt; &lt;span style="color: rgb(0, 0, 0); "&gt;}&lt;/span&gt;&lt;/div&gt;&lt;div class="source" style="font-family: None, Consolas, 'Lucida Console', 'Courier New'; color: rgb(0, 0, 0); background-color: rgb(247, 239, 231); font-size: 14px; "&gt;&lt;span style="color: rgb(0, 0, 0); "&gt;end&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5905642014094604461-7301517560805688879?l=everph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://everph.blogspot.com/feeds/7301517560805688879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5905642014094604461&amp;postID=7301517560805688879' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5905642014094604461/posts/default/7301517560805688879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5905642014094604461/posts/default/7301517560805688879'/><link rel='alternate' type='text/html' href='http://everph.blogspot.com/2011/01/java-inner-class.html' title='Java Inner Class'/><author><name>EverPh</name><uri>http://www.blogger.com/profile/09946640127773047786</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5905642014094604461.post-8217244695879326347</id><published>2009-03-30T18:22:00.000-07:00</published><updated>2009-03-30T18:24:04.355-07:00</updated><title type='text'>How to find coordinates on Google Maps</title><content type='html'>Although it is rare, there may be a time when you have to look up the coordinates of a particular location. Personally, I used Google Maps to get the coordinates, but it took a while to figure out how to find them!&lt;br /&gt;&lt;br /&gt;It would be nice if you could just check a box and have your cursor show you coordinates as you hover your mouse over the map, but too bad that feature is not there yet.&lt;br /&gt;&lt;br /&gt;There are actually few ways to find coordinates on a Google Map and none of them are very intuitive!&lt;br /&gt;&lt;br /&gt;Method 1: Click on Send or Link&lt;br /&gt;&lt;br /&gt;The first strange way to get the coordinates is to click on Send or Link at the top right of the map. When you click on Send, the Message body will contain the Latitude and Longitude values towards the bottom.&lt;br /&gt;&lt;br /&gt;find coordinates google maps&lt;br /&gt;&lt;br /&gt;Method 2: Use Javascipt Hack&lt;br /&gt;&lt;br /&gt;The second method is also strange, but it’s definitely very cool! To find the coordinates of any location, first search the address in Google Maps and make sure the address is centered. By default, when you do the search, the result is centered. So before doing the next step, don’t move around the map.&lt;br /&gt;&lt;br /&gt;Now simply copy and paste the following code into your browser address bar:&lt;br /&gt;&lt;br /&gt;    javascript:void(prompt(”,gApplication.getMap().getCenter()));&lt;br /&gt;&lt;br /&gt;Yes that’s it! A popup window will appear with the latitude and longitude values for the location! Sweet. Great tip from LifeHacker.&lt;br /&gt;&lt;br /&gt;get coordinates&lt;br /&gt;&lt;br /&gt;Method 3: Install Google Map Add-ons&lt;br /&gt;&lt;br /&gt;You can also make it really simple for yourself by installing an add-on to Google Maps so that you can simply click on any location on a Google Map and it will show you the coordinates.&lt;br /&gt;&lt;br /&gt;PositionFinder gets the coordinates for any position on a Google Map, simple as that. Just click the Add it to Maps button to install it.&lt;br /&gt;&lt;br /&gt;position finder&lt;br /&gt;&lt;br /&gt;Method 4: Right-click and choose “Directions from here”&lt;br /&gt;&lt;br /&gt;Another method that doesn’t require installing anything is to right-click on any location and choose “Directions from here”. A box will pop up on the left hand side and it will include the exact coordinates for that location.&lt;br /&gt;&lt;br /&gt;directions from here&lt;br /&gt;&lt;br /&gt;get latitude and logitude&lt;br /&gt;&lt;br /&gt;Apparently, you can perform a search and then right-click on the little push-pin and choose this option. However, I could not get it to work by right-clicking on the push-pin itself because it would keep zooming out, but instead had to search for the location and then right-click on a spot very close to the push-pin! Very weird, but works!&lt;br /&gt;&lt;br /&gt;Method 5: Use Google Earth&lt;br /&gt;&lt;br /&gt;Finally, you can also use Google Earth to find the coordinates in degrees for any location. The best thing about Google Earth is that it gives you the coordinates without having to do weird stuff like you have to for Google Maps!&lt;br /&gt;&lt;br /&gt;So that’s all the possible ways I could find for getting coordinates from Google Maps. Enjoy!&lt;br /&gt;references:http://www.online-tech-tips.com/computer-tips/find-longitude-latitude/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5905642014094604461-8217244695879326347?l=everph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://everph.blogspot.com/feeds/8217244695879326347/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5905642014094604461&amp;postID=8217244695879326347' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5905642014094604461/posts/default/8217244695879326347'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5905642014094604461/posts/default/8217244695879326347'/><link rel='alternate' type='text/html' href='http://everph.blogspot.com/2009/03/how-to-find-coordinates-on-google-maps.html' title='How to find coordinates on Google Maps'/><author><name>EverPh</name><uri>http://www.blogger.com/profile/09946640127773047786</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5905642014094604461.post-2797450110960845495</id><published>2009-03-29T17:18:00.000-07:00</published><updated>2009-03-29T17:35:10.206-07:00</updated><title type='text'>Google map testing</title><content type='html'>&lt;table cellspacing="0" cellpadding="0" border="0"&gt;&lt;tr&gt;&lt;td&gt;&lt;iframe src="http://www.map-generator.net/extmap.php?name=Nelson&amp;amp;address=3-90A%20halifax%20street%20east%20nelson%20new%20zealand&amp;amp;width=500&amp;amp;height=400&amp;amp;maptype=map&amp;amp;zoom=14&amp;amp;hl=en&amp;amp;t=1238373225" width="500" height="400" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td align="right"&gt;&lt;a style="font:8px Arial;text-decoration:none;cursor:default;color:#5C5C5C;" href="http://www.map-generator.net"&gt;Map Generator&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&lt;!-- Do not change code! --&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5905642014094604461-2797450110960845495?l=everph.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://everph.blogspot.com/feeds/2797450110960845495/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5905642014094604461&amp;postID=2797450110960845495' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5905642014094604461/posts/default/2797450110960845495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5905642014094604461/posts/default/2797450110960845495'/><link rel='alternate' type='text/html' href='http://everph.blogspot.com/2009/03/google-map-testing.html' title='Google map testing'/><author><name>EverPh</name><uri>http://www.blogger.com/profile/09946640127773047786</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry></feed>
