<?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-4273407935869854972</id><updated>2011-07-07T23:21:22.896-07:00</updated><category term='Tricky Java Program 2'/><category term='Tricky Java Programs'/><category term='Announcement'/><category term='Tricky Java Program 1'/><category term='Google'/><title type='text'>Java Programmer's Blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://javacoderblog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4273407935869854972/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://javacoderblog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>IT GUY</name><uri>http://www.blogger.com/profile/05142303778138494498</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>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4273407935869854972.post-868414199450411789</id><published>2010-06-21T23:43:00.000-07:00</published><updated>2010-06-21T23:43:02.303-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tricky Java Program 2'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricky Java Programs'/><title type='text'>Solution to the tricky program 2</title><content type='html'>&amp;nbsp;Solution to the program&amp;nbsp;&lt;a href="http://javacoderblog.blogspot.com/2010/05/tricky-program-1-to-java-beginners.html"&gt;http://javacoderblog.blogspot.com/2010/05/tricky-program-1-to-java-beginners.html&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #333333; font-family: Verdana; font-size: 13px;"&gt;import java.io.*;&lt;br /&gt;public class NMM&lt;br /&gt;{&lt;br /&gt;static&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;final PrintStream out = System.out;&lt;br /&gt;&lt;br /&gt;PrintStream newOut = new PrintStream(out)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;public void println(String str1)&lt;br /&gt;{&lt;br /&gt;print("Great ");&lt;br /&gt;print(str1);&lt;br /&gt;super.println("Programmer");&lt;br /&gt;}&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;System.setOut(newOut);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;public static void main(String [ ]argums)&lt;br /&gt;{&lt;br /&gt;System.out.println("Java ");&lt;br /&gt;}&lt;br /&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4273407935869854972-868414199450411789?l=javacoderblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javacoderblog.blogspot.com/feeds/868414199450411789/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacoderblog.blogspot.com/2010/06/solution-to-tricky-program-2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4273407935869854972/posts/default/868414199450411789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4273407935869854972/posts/default/868414199450411789'/><link rel='alternate' type='text/html' href='http://javacoderblog.blogspot.com/2010/06/solution-to-tricky-program-2.html' title='Solution to the tricky program 2'/><author><name>IT GUY</name><uri>http://www.blogger.com/profile/05142303778138494498</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-4273407935869854972.post-5008555979783140218</id><published>2010-05-18T20:12:00.000-07:00</published><updated>2010-06-21T23:43:50.770-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tricky Java Program 2'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricky Java Programs'/><title type='text'>A tricky program 2 to Java Beginners,</title><content type='html'>&lt;b&gt;Question:-&lt;/b&gt; You should bring the output by not modifying the main method,The output is "Great Java Programmer".&lt;br /&gt;&lt;br /&gt;class NMM //No main method&lt;br /&gt;{&lt;br /&gt;public static void main(String []args)&lt;br /&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;System.out.println(“Java”);&lt;/div&gt;&lt;div&gt;}&lt;br /&gt;&lt;div&gt;}Seems to be tricky for you right?.Let us see what is answer in the next post..If you know the answer just post as comment or mail to me.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;UPDATE&lt;/b&gt;: Check out the solution here&amp;nbsp;&lt;a href="http://javacoderblog.blogspot.com/2010/06/solution-to-tricky-program-2.html"&gt;http://javacoderblog.blogspot.com/2010/06/solution-to-tricky-program-2.html&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4273407935869854972-5008555979783140218?l=javacoderblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javacoderblog.blogspot.com/feeds/5008555979783140218/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacoderblog.blogspot.com/2010/05/tricky-program-1-to-java-beginners.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4273407935869854972/posts/default/5008555979783140218'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4273407935869854972/posts/default/5008555979783140218'/><link rel='alternate' type='text/html' href='http://javacoderblog.blogspot.com/2010/05/tricky-program-1-to-java-beginners.html' title='A tricky program 2 to Java Beginners,'/><author><name>IT GUY</name><uri>http://www.blogger.com/profile/05142303778138494498</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-4273407935869854972.post-1948260182558837982</id><published>2010-05-18T20:00:00.000-07:00</published><updated>2010-05-18T20:13:49.942-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tricky Java Program 1'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricky Java Programs'/><title type='text'>Java program that runs without Main method</title><content type='html'>Most of you heard about this popular question.this post is for those who did not know about this.&lt;br /&gt;While Learning Java in Computer Centre,my Mam asked me this question. I replied, immediately “Mam, Applets run without main method,is this is answer?” ;) . It is also a right answer I think..But it is not the answer what she expected. She asked me to write a program again, without main method,, after some time I gave her the answer,[ I read related article already ]. I wrote the following program.&lt;br /&gt;class NMM //No main method&lt;br /&gt;{&lt;br /&gt;static&lt;br /&gt;{&lt;br /&gt;System.out.println(“This is the Java Program That Runs Without Main Method”);&lt;br /&gt;System.exit(0);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;div&gt;Reason is, before the main block getting executed, the static initializations gets executed. So You might ask , why this System.exit(0) line. This is to terminate the program, when it throws exception because of the class not having main method.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4273407935869854972-1948260182558837982?l=javacoderblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javacoderblog.blogspot.com/feeds/1948260182558837982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacoderblog.blogspot.com/2010/05/java-program-that-runs-without-main.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4273407935869854972/posts/default/1948260182558837982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4273407935869854972/posts/default/1948260182558837982'/><link rel='alternate' type='text/html' href='http://javacoderblog.blogspot.com/2010/05/java-program-that-runs-without-main.html' title='Java program that runs without Main method'/><author><name>IT GUY</name><uri>http://www.blogger.com/profile/05142303778138494498</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-4273407935869854972.post-1702102962820016738</id><published>2010-05-18T11:09:00.000-07:00</published><updated>2010-05-18T20:14:24.934-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><title type='text'>My Solution to Google Code Jam Problem Theme Park</title><content type='html'>&lt;span class="Apple-style-span" style="font-family: Arial, sans-serif; font-size: small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;h3 style="font-size: 14px;"&gt;I have successfully Solved the Theme Park Problem.The following is the problem and its solution...&lt;/h3&gt;&lt;h3 style="font-size: 14px;"&gt;&lt;span class="Apple-style-span" style="color: blue;"&gt;Problem&lt;/span&gt;&lt;/h3&gt;Roller coasters are so much fun! It seems like everybody who visits the theme park wants to ride the roller coaster. Some people go alone; other people go in groups, and don't want to board the roller coaster unless they can all go together. And&amp;nbsp;&lt;i&gt;everyone&lt;/i&gt;&amp;nbsp;who rides the roller coaster wants to ride again. A ride costs 1 Euro per person; your job is to figure out how much money the roller coaster will make today.&lt;br /&gt;The roller coaster can hold&amp;nbsp;&lt;b&gt;k&lt;/b&gt;&amp;nbsp;people at once. People queue for it in groups. Groups board the roller coaster, one at a time, until there are no more groups left or there is no room for the next group; then the roller coaster goes, whether it's full or not. Once the ride is over, all of its passengers re-queue in the same order. The roller coaster will run&amp;nbsp;&lt;b&gt;R&lt;/b&gt;&amp;nbsp;times in a day.&lt;br /&gt;For example, suppose&amp;nbsp;&lt;b&gt;R&lt;/b&gt;=4,&amp;nbsp;&lt;b&gt;k&lt;/b&gt;=6, and there are four groups of people with sizes: 1, 4, 2, 1. The first time the roller coaster goes, the first two groups [1, 4] will ride, leaving an empty seat (the group of 2 won't fit, and the group of 1 can't go ahead of them). Then they'll go to the back of the queue, which now looks like 2, 1, 1, 4. The second time, the coaster will hold 4 people: [2, 1, 1]. Now the queue looks like 4, 2, 1, 1. The third time, it will hold 6 people: [4, 2]. Now the queue looks like [1, 1, 4, 2]. Finally, it will hold 6 people: [1, 1, 4]. The roller coaster has made a total of 21 Euros!&lt;br /&gt;&lt;h3 style="font-size: 14px; font-weight: normal;"&gt;Input&lt;/h3&gt;The first line of the input gives the number of test cases,&amp;nbsp;&lt;b&gt;T&lt;/b&gt;.&amp;nbsp;&lt;b&gt;T&lt;/b&gt;&amp;nbsp;test cases follow, with each test case consisting of two lines. The first line contains three space-separated integers:&lt;b&gt;R&lt;/b&gt;,&amp;nbsp;&lt;b&gt;k&lt;/b&gt;&amp;nbsp;and&amp;nbsp;&lt;b&gt;N&lt;/b&gt;. The second line contains&amp;nbsp;&lt;b&gt;N&lt;/b&gt;&amp;nbsp;space-separated integers&amp;nbsp;&lt;b&gt;g&lt;sub&gt;i&lt;/sub&gt;&lt;/b&gt;, each of which is the size of a group that wants to ride.&amp;nbsp;&lt;b&gt;g&lt;sub&gt;0&lt;/sub&gt;&lt;/b&gt;&amp;nbsp;is the size of the first group,&amp;nbsp;&lt;b&gt;g&lt;sub&gt;1&lt;/sub&gt;&lt;/b&gt;&amp;nbsp;is the size of the second group, etc.&lt;br /&gt;&lt;h3 style="font-size: 14px; font-weight: normal;"&gt;Output&lt;/h3&gt;For each test case, output one line containing "Case #x: y", where x is the case number (starting from 1) and y is the number of Euros made by the roller coaster.&lt;br /&gt;&lt;h3 style="font-size: 14px; font-weight: normal;"&gt;Limits&lt;/h3&gt;1 ≤&amp;nbsp;&lt;b&gt;T&lt;/b&gt;&amp;nbsp;≤ 50.&lt;br /&gt;&lt;b&gt;g&lt;sub&gt;i&lt;/sub&gt;&lt;/b&gt;&amp;nbsp;≤&amp;nbsp;&lt;b&gt;k&lt;/b&gt;.&lt;br /&gt;&lt;h4 style="font-size: 14px; font-weight: normal;"&gt;Small dataset&lt;/h4&gt;1 ≤&amp;nbsp;&lt;b&gt;R&lt;/b&gt;&amp;nbsp;≤ 1000.&lt;br /&gt;1 ≤&amp;nbsp;&lt;b&gt;k&lt;/b&gt;&amp;nbsp;≤ 100.&lt;br /&gt;1 ≤&amp;nbsp;&lt;b&gt;N&lt;/b&gt;&amp;nbsp;≤ 10.&lt;br /&gt;1 ≤&amp;nbsp;&lt;b&gt;g&lt;sub&gt;i&lt;/sub&gt;&lt;/b&gt;&amp;nbsp;≤ 10.&lt;br /&gt;&lt;h4 style="font-size: 14px; font-weight: normal;"&gt;Large dataset&lt;/h4&gt;1 ≤&amp;nbsp;&lt;b&gt;R&lt;/b&gt;&amp;nbsp;≤ 10&lt;sup&gt;8&lt;/sup&gt;.&lt;br /&gt;1 ≤&amp;nbsp;&lt;b&gt;k&lt;/b&gt;&amp;nbsp;≤ 10&lt;sup&gt;9&lt;/sup&gt;.&lt;br /&gt;1 ≤&amp;nbsp;&lt;b&gt;N&lt;/b&gt;&amp;nbsp;≤ 1000.&lt;br /&gt;1 ≤&amp;nbsp;&lt;b&gt;g&lt;sub&gt;i&lt;/sub&gt;&lt;/b&gt;&amp;nbsp;≤ 10&lt;sup&gt;7&lt;/sup&gt;.&lt;br /&gt;&lt;h3 style="font-size: 14px; font-weight: normal;"&gt;Sample:-&lt;/h3&gt;&lt;div&gt;&lt;b&gt;My Solution To The Problem In Java&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;import java.io.*;&lt;/div&gt;&lt;div&gt;import java.util.regex.Pattern;&lt;/div&gt;&lt;div&gt;public class thirdpart1&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;static int groups[];&lt;/div&gt;&lt;div&gt;static int N;&lt;/div&gt;&lt;div&gt;static int testcases=0;&lt;/div&gt;&lt;div&gt;public static void main(String args[])throws Exception&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;File file = new File("C-small.in");&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;FileInputStream fis =new FileInputStream(file);&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;BufferedInputStream bis = new BufferedInputStream(fis);&lt;/div&gt;&lt;div&gt;DataInputStream dis = new DataInputStream(bis);&lt;/div&gt;&lt;div&gt;testcases=Integer.parseInt( dis.readLine() );&lt;/div&gt;&lt;div&gt;int mno=0;&lt;/div&gt;&lt;div&gt;while( mno&lt;testcases )&amp;nbsp;=""&gt;&lt;/testcases&gt;&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;&amp;nbsp;int euros=0;&lt;/div&gt;&lt;div&gt;mno++;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;String ab=dis.readLine();&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;String REGEX = " ";&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;String INPUT = ab;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;Pattern p = Pattern.compile(REGEX);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;String[] items = p.split(INPUT);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;int R=Integer.parseInt(items[0]);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;int K=Integer.parseInt(items[1]);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;N=Integer.parseInt(items[2]);&lt;/div&gt;&lt;div&gt;groups=new int[N+555000];&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;String ab2=dis.readLine();&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;REGEX = " ";&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;INPUT = ab2;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;p = Pattern.compile(REGEX);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;String[] items1 = p.split(INPUT);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt;int k5=0;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt; for (int i3 = 0; i3 &amp;lt; items1.length; i3++)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt; {k5++;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt; groups[k5]=Integer.parseInt(items1[i3]);&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;   &lt;/span&gt; }&lt;/div&gt;&lt;div&gt;int coastriders[]=new int[551000];&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;for(int mn=1;mn&amp;lt;=R;mn++)&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;int z=0,totalcost=0,j=1;&lt;/div&gt;&lt;div&gt;for(j=1;j&amp;lt;=N;j++)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;if( &amp;nbsp; ( (totalcost+groups[j])&amp;lt;=K ) &amp;nbsp; &amp;nbsp;)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;z++;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;totalcost=totalcost+groups[z];&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;coastriders[z]=groups[z];&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;       &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;else&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;break;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt;  &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;for(int nm=1;nm&amp;lt;=z;nm++)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;euros=euros+coastriders[nm];&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;shifter(z,coastriders);&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;System.out.println("Case #"+mno+": "+euros);&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;static void shifter(int z,int coastriders[])&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;div&gt;int s=1,i=1;&lt;/div&gt;&lt;div&gt;int temp[]=new int[z+551000];&lt;/div&gt;&lt;div&gt;i=z+1;&lt;/div&gt;&lt;div&gt;for(s=0;i&amp;lt;=N;i++)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;s++;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;temp[s]=groups[i];&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;}&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;int h=N-z;&lt;/div&gt;&lt;div&gt;for(i=1;i&amp;lt;=h;i++)&lt;/div&gt;&lt;div&gt;groups[i]=temp[i];&lt;/div&gt;&lt;div&gt;for(s=1;i&amp;lt;=N;i++)&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;{&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;groups[i]=coastriders[s];&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;s++;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-tab-span" style="white-space: pre;"&gt; &lt;/span&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;}&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4273407935869854972-1702102962820016738?l=javacoderblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javacoderblog.blogspot.com/feeds/1702102962820016738/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacoderblog.blogspot.com/2010/05/my-solution-to-google-code-jam-problem.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4273407935869854972/posts/default/1702102962820016738'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4273407935869854972/posts/default/1702102962820016738'/><link rel='alternate' type='text/html' href='http://javacoderblog.blogspot.com/2010/05/my-solution-to-google-code-jam-problem.html' title='My Solution to Google Code Jam Problem Theme Park'/><author><name>IT GUY</name><uri>http://www.blogger.com/profile/05142303778138494498</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-4273407935869854972.post-8562871636657395592</id><published>2010-05-18T10:56:00.000-07:00</published><updated>2010-05-18T20:14:38.753-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><title type='text'>Google Developers</title><content type='html'>&lt;span class="Apple-style-span" style="color: blue;"&gt;http://www.youtube.com/GoogleDevelopers&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial; font-size: 12px; line-height: 16px;"&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;This channel is the home for videos of interest to developers. It will contain interviews, screencasts, and anything that the Google Code folk think is entertaining.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial; font-size: 12px; line-height: 16px;"&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="font-family: arial; font-size: 12px; line-height: 16px;"&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;Hope You love it..!&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4273407935869854972-8562871636657395592?l=javacoderblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javacoderblog.blogspot.com/feeds/8562871636657395592/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacoderblog.blogspot.com/2010/05/google-developers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4273407935869854972/posts/default/8562871636657395592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4273407935869854972/posts/default/8562871636657395592'/><link rel='alternate' type='text/html' href='http://javacoderblog.blogspot.com/2010/05/google-developers.html' title='Google Developers'/><author><name>IT GUY</name><uri>http://www.blogger.com/profile/05142303778138494498</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-4273407935869854972.post-2256582746198438275</id><published>2010-05-18T10:43:00.000-07:00</published><updated>2010-05-18T20:14:55.566-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Announcement'/><title type='text'>JAVAC "welcomeprogrammers.java"</title><content type='html'>&lt;b&gt;LOCATION:- start.jar-&amp;gt;welcomeprogrammers.java&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;public class welcomeprogrammers&lt;/span&gt;&lt;span class="Apple-style-span"&gt;&lt;a href="http://javacoderblog.blogspot.com/" title="Smilies"&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&lt;img alt="Smilies" src="http://i32.photobucket.com/albums/d19/xdomains/smilies/angel/7.gif " /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;public static void main( String []args )&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.out.println("Hello ! Programmers");&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span"&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.out.println("I Welcome all Programmers to my Blog ! Let Java Rocks");&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;br /&gt;&lt;span class="Apple-style-span" style="color: #274e13;"&gt;}&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4273407935869854972-2256582746198438275?l=javacoderblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javacoderblog.blogspot.com/feeds/2256582746198438275/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://javacoderblog.blogspot.com/2010/05/javac-welcomeprogrammersjava.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4273407935869854972/posts/default/2256582746198438275'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4273407935869854972/posts/default/2256582746198438275'/><link rel='alternate' type='text/html' href='http://javacoderblog.blogspot.com/2010/05/javac-welcomeprogrammersjava.html' title='JAVAC &quot;welcomeprogrammers.java&quot;'/><author><name>IT GUY</name><uri>http://www.blogger.com/profile/05142303778138494498</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></feed>
