<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Java Program - Greatest Common Divisor' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Java Program - Greatest Common Divisor' posted on the 'Java' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Wed, 19 Jun 2013 12:13:55 -0700</pubDate>
    <lastBuildDate>Wed, 19 Jun 2013 12:13:55 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/257172/java-program---greatest-common-divisor/</link>
      <description>I have been asked to create a java program which will calculate the Greatest Common Divisor of two integer arguments. I have so far got this:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
import java.lang.*;
import java.math.*;

public class Gcd {

public static int gcdCalc ( int int1, int int2 ) {

		if( int1 == int2) {
			gcd = int1;
		}//if

		else {
			while ( int1 != int2) {

				if( int1 &amp;gt; int2 ) {
					int1 = int1 - int2;
				}//nested-if

				else {
					int2 = int2 - int1;
				}//nested-else
			}//while
		}//else

		return( gcd );

	}//gcdCalc


	public static void main( String args[] ) {

		int arg1 = Integer.parseInt( args[0] );
		int arg2 = Integer.parseInt( args[1] );

		int endGcd = gcdCalc( arg1, arg2 );

		System.out.println( "The GCD for Integers " + arg1 + " and " + arg2 + " is " + endGcd );
	}//main

}//Gcd class
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
The program as it stands will not compile and the errors I cannot seem to fix&lt;br /&gt;
&lt;br /&gt;
&lt;strong&gt;&lt;span style="color: Blue;"&gt;Errors:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
cannot resolve symbol&lt;br /&gt;
symbol  : variable gcd &lt;br /&gt;
location: class Gcd&lt;br /&gt;
			gcd = int1;&lt;br /&gt;
                        ^&lt;br /&gt;
cannot resolve symbol&lt;br /&gt;
symbol  : variable gcd &lt;br /&gt;
location: class Gcd&lt;br /&gt;
		return( gcd );&lt;br /&gt;
                        ^&lt;br /&gt;
[/blue]&lt;br /&gt;
&lt;br /&gt;
Any suggestions?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/257172/java-program---greatest-common-divisor/</guid>
      <pubDate>Sat, 01 May 2004 12:48:34 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/257198/re-java-program---greatest-common-divisor/#257198</link>
      <description>: I have been asked to create a java program which will calculate the Greatest Common Divisor of two integer arguments. I have so far got this:&lt;br /&gt;
: &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;
: import java.lang.*;
: import java.math.*;
: 
: public class Gcd {
: 
: public static int gcdCalc ( int int1, int int2 ) {
: 
: 		if( int1 == int2) {
: 			gcd = int1;
: 		}//if
: 
: 		else {
: 			while ( int1 != int2) {
: 
: 				if( int1 &amp;gt; int2 ) {
: 					int1 = int1 - int2;
: 				}//nested-if
: 
: 				else {
: 					int2 = int2 - int1;
: 				}//nested-else
: 			}//while
: 		}//else
: 
: 		return( gcd );
: 
: 	}//gcdCalc
: 
: 
: 	public static void main( String args[] ) {
: 
: 		int arg1 = Integer.parseInt( args[0] );
: 		int arg2 = Integer.parseInt( args[1] );
: 
: 		int endGcd = gcdCalc( arg1, arg2 );
: 
: 		System.out.println( "The GCD for Integers " + arg1 + " and " + arg2 + " is " + endGcd );
: 	}//main
: 
: }//Gcd class
: &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: The program as it stands will not compile and the errors I cannot seem to fix&lt;br /&gt;
: &lt;br /&gt;
: &lt;strong&gt;&lt;span style="color: Blue;"&gt;Errors:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
: &lt;br /&gt;
: cannot resolve symbol&lt;br /&gt;
: symbol  : variable gcd &lt;br /&gt;
: location: class Gcd&lt;br /&gt;
: 			gcd = int1;&lt;br /&gt;
:                         ^&lt;br /&gt;
: cannot resolve symbol&lt;br /&gt;
: symbol  : variable gcd &lt;br /&gt;
: location: class Gcd&lt;br /&gt;
: 		return( gcd );&lt;br /&gt;
:                         ^&lt;br /&gt;
: [/blue]&lt;br /&gt;
: &lt;br /&gt;
: Any suggestions?&lt;br /&gt;
&lt;br /&gt;
The error should be pretty clear.  It says the error is cannot resolve symbol, and it says the symbol is variable gcd, so it's saying cannot resolve variable gcd.  IOW, you need to declare the variable gcd before you try to use it.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/257198/re-java-program---greatest-common-divisor/#257198</guid>
      <pubDate>Sat, 01 May 2004 19:26:36 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/257216/re-java-program---greatest-common-divisor/#257216</link>
      <description>&lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by kentylad at  2004-5-2 3:29:59&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: : I have been asked to create a java program which will calculate the Greatest Common Divisor of two integer arguments. I have so far got this:&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;pre class="sourcecode"&gt;
: : import java.lang.*;
: : import java.math.*;
: : 
: : public class Gcd {
: : 
: : public static int gcdCalc ( int int1, int int2 ) {
: : 
: : 		if( int1 == int2) {
: : 			&lt;span style="color: Red;"&gt;int&lt;/span&gt; gcd = int1;
: : 		}//if
: : 
: : 		else {
: : 			while ( int1 != int2) {
: : 
: : 				if( int1 &amp;gt; int2 ) {
: : 					int1 = int1 - int2;
: : 				}//nested-if
: : 
: : 				else {
: : 					int2 = int2 - int1;
: : 				}//nested-else
: : 			}//while
: : 		}//else
: : 
: : 		return( gcd );
: : 
: : 	}//gcdCalc
: : 
: : 
: : 	public static void main( String args[] ) {
: : 
: : 		int arg1 = Integer.parseInt( args[0] );
: : 		int arg2 = Integer.parseInt( args[1] );
: : 
: : 		int endGcd = gcdCalc( arg1, arg2 );
: : 
: : 		System.out.println( "The GCD for Integers " + arg1 + " and " + arg2 + " is " + endGcd );
: : 	}//main
: : 
: : }//Gcd class
: : &lt;/pre&gt;&lt;br /&gt;
: : &lt;br /&gt;
: : The program as it stands will not compile and the errors I cannot seem to fix&lt;br /&gt;
: : &lt;br /&gt;
: : &lt;strong&gt;&lt;span style="color: Blue;"&gt;Errors:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
: : &lt;br /&gt;
: : cannot resolve symbol&lt;br /&gt;
: : symbol  : variable gcd &lt;br /&gt;
: : location: class Gcd&lt;br /&gt;
: : 			gcd = int1;&lt;br /&gt;
: :                         ^&lt;br /&gt;
: : cannot resolve symbol&lt;br /&gt;
: : symbol  : variable gcd &lt;br /&gt;
: : location: class Gcd&lt;br /&gt;
: : 		return( gcd );&lt;br /&gt;
: :                         ^&lt;br /&gt;
: : [/blue]&lt;br /&gt;
: : &lt;br /&gt;
: : Any suggestions?&lt;br /&gt;
: &lt;br /&gt;
: The error should be pretty clear.  It says the error is cannot resolve symbol, and it says the symbol is variable gcd, so it's saying cannot resolve variable gcd.  IOW, you need to declare the variable gcd before you try to use it.&lt;br /&gt;
&lt;br /&gt;
OK so I have declared the variable gcd's type (int), however the&lt;br /&gt;
&lt;span style="color: Blue;"&gt;&lt;br /&gt;
cannot resolve symbol&lt;br /&gt;
symbol  : variable gcd &lt;br /&gt;
location: class Gcd&lt;br /&gt;
 		return( gcd );&lt;br /&gt;
                         ^&lt;/span&gt;&lt;br /&gt;
error still persists&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/257216/re-java-program---greatest-common-divisor/#257216</guid>
      <pubDate>Sun, 02 May 2004 03:29:26 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/257229/re-java-program---greatest-common-divisor/#257229</link>
      <description>: &lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by kentylad at  2004-5-2 3:29:59&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: : : I have been asked to create a java program which will calculate the Greatest Common Divisor of two integer arguments. I have so far got this:&lt;br /&gt;
: : : &lt;br /&gt;
: : : &lt;pre class="sourcecode"&gt;
: : : import java.lang.*;
: : : import java.math.*;
: : : 
: : : public class Gcd {
: : : 
: : : public static int gcdCalc ( int int1, int int2 ) {
: : : 
: : : 		if( int1 == int2) {
: : : 			&lt;span style="color: Red;"&gt;int&lt;/span&gt; gcd = int1;
: : : 		}//if
: : : 
: : : 		else {
: : : 			while ( int1 != int2) {
: : : 
: : : 				if( int1 &amp;gt; int2 ) {
: : : 					int1 = int1 - int2;
: : : 				}//nested-if
: : : 
: : : 				else {
: : : 					int2 = int2 - int1;
: : : 				}//nested-else
: : : 			}//while
: : : 		}//else
: : : 
: : : 		return( gcd );
: : : 
: : : 	}//gcdCalc
: : : 
: : : 
: : : 	public static void main( String args[] ) {
: : : 
: : : 		int arg1 = Integer.parseInt( args[0] );
: : : 		int arg2 = Integer.parseInt( args[1] );
: : : 
: : : 		int endGcd = gcdCalc( arg1, arg2 );
: : : 
: : : 		System.out.println( "The GCD for Integers " + arg1 + " and " + arg2 + " is " + endGcd );
: : : 	}//main
: : : 
: : : }//Gcd class
: : : &lt;/pre&gt;&lt;br /&gt;
: : : &lt;br /&gt;
: : : The program as it stands will not compile and the errors I cannot seem to fix&lt;br /&gt;
: : : &lt;br /&gt;
: : : &lt;strong&gt;&lt;span style="color: Blue;"&gt;Errors:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
: : : &lt;br /&gt;
: : : cannot resolve symbol&lt;br /&gt;
: : : symbol  : variable gcd &lt;br /&gt;
: : : location: class Gcd&lt;br /&gt;
: : : 			gcd = int1;&lt;br /&gt;
: : :                         ^&lt;br /&gt;
: : : cannot resolve symbol&lt;br /&gt;
: : : symbol  : variable gcd &lt;br /&gt;
: : : location: class Gcd&lt;br /&gt;
: : : 		return( gcd );&lt;br /&gt;
: : :                         ^&lt;br /&gt;
: : : [/blue]&lt;br /&gt;
: : : &lt;br /&gt;
: : : Any suggestions?&lt;br /&gt;
: : &lt;br /&gt;
: : The error should be pretty clear.  It says the error is cannot resolve symbol, and it says the symbol is variable gcd, so it's saying cannot resolve variable gcd.  IOW, you need to declare the variable gcd before you try to use it.&lt;br /&gt;
: &lt;br /&gt;
: OK so I have declared the variable gcd's type (int), however the&lt;br /&gt;
: &lt;span style="color: Blue;"&gt;&lt;br /&gt;
: cannot resolve symbol&lt;br /&gt;
: symbol  : variable gcd &lt;br /&gt;
: location: class Gcd&lt;br /&gt;
:  		return( gcd );&lt;br /&gt;
:                          ^&lt;/span&gt;&lt;br /&gt;
: error still persists&lt;br /&gt;
&lt;br /&gt;
Has to do with the "scope" of the variable.  Since you declared it inside a set of { } brackets, it is only visible from within that block of code.  You need to declare it at the very top of your method, and then it'll be available in all parts of it.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/257229/re-java-program---greatest-common-divisor/#257229</guid>
      <pubDate>Sun, 02 May 2004 06:11:15 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/257230/re-java-program---greatest-common-divisor/#257230</link>
      <description>&lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by kentylad at  2004-5-2 6:20:33&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: : &lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by kentylad at  2004-5-2 3:29:59&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: : : : I have been asked to create a java program which will calculate the Greatest Common Divisor of two integer arguments. I have so far got this:&lt;br /&gt;
: : : : &lt;br /&gt;
: : : : &lt;pre class="sourcecode"&gt;
: : : : import java.lang.*;
: : : : import java.math.*;
: : : : 
: : : : public class Gcd {

: : : : &lt;span style="color: Red;"&gt;gcd = 0;&lt;/span&gt;

: : : : public static int gcdCalc ( int int1, int int2 ) {
: : : : 
: : : : 		if( int1 == int2) {
: : : : 		    gcd = int1;
: : : : 		}//if
: : : : 
: : : : 		else {
: : : : 			while ( int1 != int2) {
: : : : 
: : : : 				if( int1 &amp;gt; int2 ) {
: : : : 					int1 = int1 - int2;
                                                &lt;span style="color: Red;"&gt;gcd = int1;&lt;/span&gt;
: : : : 				}//nested-if
: : : : 
: : : : 				else {
: : : : 					int2 = int2 - int1;
                                                &lt;span style="color: Red;"&gt;gcd = int2;&lt;/span&gt;
: : : : 				}//nested-else
: : : : 			}//while
: : : : 		}//else
: : : : 
: : : : 		return( gcd );
: : : : 
: : : : 	}//gcdCalc
: : : : 
: : : : 
: : : : 	public static void main( String args[] ) {
: : : : 
: : : : 		int arg1 = Integer.parseInt( args[0] );
: : : : 		int arg2 = Integer.parseInt( args[1] );
: : : : 
: : : : 		int endGcd = gcdCalc( arg1, arg2 );
: : : : 
: : : : 		System.out.println( "The GCD for Integers " + arg1 + " and " + arg2 + " is " + endGcd );
: : : : 	}//main
: : : : 
: : : : }//Gcd class
: : : : &lt;/pre&gt;&lt;br /&gt;
: : : : &lt;br /&gt;
: : : : The program as it stands will not compile and the errors I cannot seem to fix&lt;br /&gt;
: : : : &lt;br /&gt;
: : : : &lt;strong&gt;&lt;span style="color: Blue;"&gt;Errors:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
: : : : &lt;br /&gt;
: : : : cannot resolve symbol&lt;br /&gt;
: : : : symbol  : variable gcd &lt;br /&gt;
: : : : location: class Gcd&lt;br /&gt;
: : : : 			gcd = int1;&lt;br /&gt;
: : : :                         ^&lt;br /&gt;
: : : : cannot resolve symbol&lt;br /&gt;
: : : : symbol  : variable gcd &lt;br /&gt;
: : : : location: class Gcd&lt;br /&gt;
: : : : 		return( gcd );&lt;br /&gt;
: : : :                         ^&lt;br /&gt;
: : : : [/blue]&lt;br /&gt;
: : : : &lt;br /&gt;
: : : : Any suggestions?&lt;br /&gt;
: : : &lt;br /&gt;
: : : The error should be pretty clear.  It says the error is cannot resolve symbol, and it says the symbol is variable gcd, so it's saying cannot resolve variable gcd.  IOW, you need to declare the variable gcd before you try to use it.&lt;br /&gt;
: : &lt;br /&gt;
: : OK so I have declared the variable gcd's type (int), however the&lt;br /&gt;
: : &lt;span style="color: Blue;"&gt;&lt;br /&gt;
: : cannot resolve symbol&lt;br /&gt;
: : symbol  : variable gcd &lt;br /&gt;
: : location: class Gcd&lt;br /&gt;
: :  		return( gcd );&lt;br /&gt;
: :                          ^&lt;/span&gt;&lt;br /&gt;
: : error still persists&lt;br /&gt;
: &lt;br /&gt;
: Has to do with the "scope" of the variable.  Since you declared it inside a set of { } brackets, it is only visible from within that block of code.  You need to declare it at the very top of your method, and then it'll be available in all parts of it.&lt;br /&gt;
:&lt;br /&gt;
&lt;br /&gt;
OK changes have been made and the program will now print out the common divisor. Error checks to go&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/257230/re-java-program---greatest-common-divisor/#257230</guid>
      <pubDate>Sun, 02 May 2004 06:20:11 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/257231/re-java-program---greatest-common-divisor/#257231</link>
      <description>: &lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by kentylad at  2004-5-2 6:20:33&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: : : &lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by kentylad at  2004-5-2 3:29:59&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: : : : : I have been asked to create a java program which will calculate the Greatest Common Divisor of two integer arguments. I have so far got this:&lt;br /&gt;
: : : : : &lt;br /&gt;
: : : : : &lt;pre class="sourcecode"&gt;
: : : : : import java.lang.*;
: : : : : import java.math.*;
: : : : : 
: : : : : public class Gcd {
: 
: : : : : &lt;span style="color: Red;"&gt;gcd = 0;&lt;/span&gt;
: 
: : : : : public static int gcdCalc ( int int1, int int2 ) {
: : : : : 
: : : : : 		if( int1 == int2) {
: : : : : 		    gcd = int1;
: : : : : 		}//if
: : : : : 
: : : : : 		else {
: : : : : 			while ( int1 != int2) {
: : : : : 
: : : : : 				if( int1 &amp;gt; int2 ) {
: : : : : 					int1 = int1 - int2;
:                                                 &lt;span style="color: Red;"&gt;gcd = int1;&lt;/span&gt;
: : : : : 				}//nested-if
: : : : : 
: : : : : 				else {
: : : : : 					int2 = int2 - int1;
:                                                 &lt;span style="color: Red;"&gt;gcd = int2;&lt;/span&gt;
: : : : : 				}//nested-else
: : : : : 			}//while
: : : : : 		}//else
: : : : : 
: : : : : 		return( gcd );
: : : : : 
: : : : : 	}//gcdCalc
: : : : : 
: : : : : 
: : : : : 	public static void main( String args[] ) {
: : : : : 
: : : : : 		int arg1 = Integer.parseInt( args[0] );
: : : : : 		int arg2 = Integer.parseInt( args[1] );
: : : : : 
: : : : : 		int endGcd = gcdCalc( arg1, arg2 );
: : : : : 
: : : : : 		System.out.println( "The GCD for Integers " + arg1 + " and " + arg2 + " is " + endGcd );
: : : : : 	}//main
: : : : : 
: : : : : }//Gcd class
: : : : : &lt;/pre&gt;&lt;br /&gt;
: : : : : &lt;br /&gt;
: : : : : The program as it stands will not compile and the errors I cannot seem to fix&lt;br /&gt;
: : : : : &lt;br /&gt;
: : : : : &lt;strong&gt;&lt;span style="color: Blue;"&gt;Errors:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
: : : : : &lt;br /&gt;
: : : : : cannot resolve symbol&lt;br /&gt;
: : : : : symbol  : variable gcd &lt;br /&gt;
: : : : : location: class Gcd&lt;br /&gt;
: : : : : 			gcd = int1;&lt;br /&gt;
: : : : :                         ^&lt;br /&gt;
: : : : : cannot resolve symbol&lt;br /&gt;
: : : : : symbol  : variable gcd &lt;br /&gt;
: : : : : location: class Gcd&lt;br /&gt;
: : : : : 		return( gcd );&lt;br /&gt;
: : : : :                         ^&lt;br /&gt;
: : : : : [/blue]&lt;br /&gt;
: : : : : &lt;br /&gt;
: : : : : Any suggestions?&lt;br /&gt;
: : : : &lt;br /&gt;
: : : : The error should be pretty clear.  It says the error is cannot resolve symbol, and it says the symbol is variable gcd, so it's saying cannot resolve variable gcd.  IOW, you need to declare the variable gcd before you try to use it.&lt;br /&gt;
: : : &lt;br /&gt;
: : : OK so I have declared the variable gcd's type (int), however the&lt;br /&gt;
: : : &lt;span style="color: Blue;"&gt;&lt;br /&gt;
: : : cannot resolve symbol&lt;br /&gt;
: : : symbol  : variable gcd &lt;br /&gt;
: : : location: class Gcd&lt;br /&gt;
: : :  		return( gcd );&lt;br /&gt;
: : :                          ^&lt;/span&gt;&lt;br /&gt;
: : : error still persists&lt;br /&gt;
: : &lt;br /&gt;
: : Has to do with the "scope" of the variable.  Since you declared it inside a set of { } brackets, it is only visible from within that block of code.  You need to declare it at the very top of your method, and then it'll be available in all parts of it.&lt;br /&gt;
: :&lt;br /&gt;
: &lt;br /&gt;
: OK changes have been made and the program will now print out the common divisor. Error checks to go&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
import java.lang.*;
import java.math.*;

public class Gcd {

	public static int gcdCalc ( int int1, int int2 ) {

	int gcd = 0;

		if( int1 == int2) {
			gcd = int1;
		}//if

		else {
			while ( int1 != int2) {

				if( int1 &amp;gt; int2 ) {
					int1 = int1 - int2;
					gcd = int1;
				}//nested-if

				else {
					int2 = int2 - int1;
					gcd = int2;
				}//nested-else
			}//while
		}//else

		return( gcd );

	}//gcdCalc


	public static void main( String args[] ) {

		int arg1 = Integer.parseInt( args[0] );
		int arg2 = Integer.parseInt( args[1] );
		int endGcd = gcdCalc( arg1, arg2 );

		&lt;span style="color: Blue;"&gt;if( args.length != 2) {
			System.out.println( "Error: Incorrect Number of Arguments" );
			System.exit( 1 );
		}//if

		if ( arg1 &amp;lt; 0 || arg2 &amp;lt; 0 ) {
			System.out.println( "Error: Negative Argument Entered" );
			System.exit( 1 );
		}//if&lt;/span&gt;

		System.out.println( "The GCD for Integers " + arg1 + " and " + arg2 + " is " + endGcd );

	}//main

}//Gcd class
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
As you can see I have two error check; one to test the correct number of arguments has been entered (this works fine), and on to test for a negative integer. The negative integer checl does not work for some reason although it does compile. It seems to loop infinitly. I cant exlicitly see anything wrong with the code however&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/257231/re-java-program---greatest-common-divisor/#257231</guid>
      <pubDate>Sun, 02 May 2004 06:29:59 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/257389/re-java-program---greatest-common-divisor/#257389</link>
      <description>: : &lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by kentylad at  2004-5-2 6:20:33&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: : : : &lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by kentylad at  2004-5-2 3:29:59&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: : : : : : I have been asked to create a java program which will calculate the Greatest Common Divisor of two integer arguments. I have so far got this:&lt;br /&gt;
: : : : : : &lt;br /&gt;
: : : : : : &lt;pre class="sourcecode"&gt;
: : : : : : import java.lang.*;
: : : : : : import java.math.*;
: : : : : : 
: : : : : : public class Gcd {
: : 
: : : : : : &lt;span style="color: Red;"&gt;gcd = 0;&lt;/span&gt;
: : 
: : : : : : public static int gcdCalc ( int int1, int int2 ) {
: : : : : : 
: : : : : : 		if( int1 == int2) {
: : : : : : 		    gcd = int1;
: : : : : : 		}//if
: : : : : : 
: : : : : : 		else {
: : : : : : 			while ( int1 != int2) {
: : : : : : 
: : : : : : 				if( int1 &amp;gt; int2 ) {
: : : : : : 					int1 = int1 - int2;
: :                                                 &lt;span style="color: Red;"&gt;gcd = int1;&lt;/span&gt;
: : : : : : 				}//nested-if
: : : : : : 
: : : : : : 				else {
: : : : : : 					int2 = int2 - int1;
: :                                                 &lt;span style="color: Red;"&gt;gcd = int2;&lt;/span&gt;
: : : : : : 				}//nested-else
: : : : : : 			}//while
: : : : : : 		}//else
: : : : : : 
: : : : : : 		return( gcd );
: : : : : : 
: : : : : : 	}//gcdCalc
: : : : : : 
: : : : : : 
: : : : : : 	public static void main( String args[] ) {
: : : : : : 
: : : : : : 		int arg1 = Integer.parseInt( args[0] );
: : : : : : 		int arg2 = Integer.parseInt( args[1] );
: : : : : : 
: : : : : : 		int endGcd = gcdCalc( arg1, arg2 );
: : : : : : 
: : : : : : 		System.out.println( "The GCD for Integers " + arg1 + " and " + arg2 + " is " + endGcd );
: : : : : : 	}//main
: : : : : : 
: : : : : : }//Gcd class
: : : : : : &lt;/pre&gt;&lt;br /&gt;
: : : : : : &lt;br /&gt;
: : : : : : The program as it stands will not compile and the errors I cannot seem to fix&lt;br /&gt;
: : : : : : &lt;br /&gt;
: : : : : : &lt;strong&gt;&lt;span style="color: Blue;"&gt;Errors:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
: : : : : : &lt;br /&gt;
: : : : : : cannot resolve symbol&lt;br /&gt;
: : : : : : symbol  : variable gcd &lt;br /&gt;
: : : : : : location: class Gcd&lt;br /&gt;
: : : : : : 			gcd = int1;&lt;br /&gt;
: : : : : :                         ^&lt;br /&gt;
: : : : : : cannot resolve symbol&lt;br /&gt;
: : : : : : symbol  : variable gcd &lt;br /&gt;
: : : : : : location: class Gcd&lt;br /&gt;
: : : : : : 		return( gcd );&lt;br /&gt;
: : : : : :                         ^&lt;br /&gt;
: : : : : : [/blue]&lt;br /&gt;
: : : : : : &lt;br /&gt;
: : : : : : Any suggestions?&lt;br /&gt;
: : : : : &lt;br /&gt;
: : : : : The error should be pretty clear.  It says the error is cannot resolve symbol, and it says the symbol is variable gcd, so it's saying cannot resolve variable gcd.  IOW, you need to declare the variable gcd before you try to use it.&lt;br /&gt;
: : : : &lt;br /&gt;
: : : : OK so I have declared the variable gcd's type (int), however the&lt;br /&gt;
: : : : &lt;span style="color: Blue;"&gt;&lt;br /&gt;
: : : : cannot resolve symbol&lt;br /&gt;
: : : : symbol  : variable gcd &lt;br /&gt;
: : : : location: class Gcd&lt;br /&gt;
: : : :  		return( gcd );&lt;br /&gt;
: : : :                          ^&lt;/span&gt;&lt;br /&gt;
: : : : error still persists&lt;br /&gt;
: : : &lt;br /&gt;
: : : Has to do with the "scope" of the variable.  Since you declared it inside a set of { } brackets, it is only visible from within that block of code.  You need to declare it at the very top of your method, and then it'll be available in all parts of it.&lt;br /&gt;
: : :&lt;br /&gt;
: : &lt;br /&gt;
: : OK changes have been made and the program will now print out the common divisor. Error checks to go&lt;br /&gt;
: &lt;pre class="sourcecode"&gt;
: import java.lang.*;
: import java.math.*;
: 
: public class Gcd {
: 
: 	public static int gcdCalc ( int int1, int int2 ) {
: 
: 	int gcd = 0;
: 
: 		if( int1 == int2) {
: 			gcd = int1;
: 		}//if
: 
: 		else {
: 			while ( int1 != int2) {
: 
: 				if( int1 &amp;gt; int2 ) {
: 					int1 = int1 - int2;
: 					gcd = int1;
: 				}//nested-if
: 
: 				else {
: 					int2 = int2 - int1;
: 					gcd = int2;
: 				}//nested-else
: 			}//while
: 		}//else
: 
: 		return( gcd );
: 
: 	}//gcdCalc
: 
: 
: 	public static void main( String args[] ) {
: 
: 		int arg1 = Integer.parseInt( args[0] );
: 		int arg2 = Integer.parseInt( args[1] );
: 		int endGcd = gcdCalc( arg1, arg2 );
: 
: 		&lt;span style="color: Blue;"&gt;if( args.length != 2) {
: 			System.out.println( "Error: Incorrect Number of Arguments" );
: 			System.exit( 1 );
: 		}//if
: 
: 		if ( arg1 &amp;lt; 0 || arg2 &amp;lt; 0 ) {
: 			System.out.println( "Error: Negative Argument Entered" );
: 			System.exit( 1 );
: 		}//if&lt;/span&gt;
: 
: 		System.out.println( "The GCD for Integers " + arg1 + " and " + arg2 + " is " + endGcd );
: 
: 	}//main
: 
: }//Gcd class
: &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: As you can see I have two error check; one to test the correct number of arguments has been entered (this works fine), and on to test for a negative integer. The negative integer checl does not work for some reason although it does compile. It seems to loop infinitly. I cant exlicitly see anything wrong with the code however&lt;br /&gt;
: &lt;br /&gt;
The single error for checking for negative integers is still not working, and proving to be the trailing factor in my program. Is the condition correct i.e. if( arg1 &amp;lt; 0 || ar2 &amp;lt; 0 )?&lt;br /&gt;
&lt;br /&gt;
Regards&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/257389/re-java-program---greatest-common-divisor/#257389</guid>
      <pubDate>Mon, 03 May 2004 10:40:10 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/257390/re-java-program---greatest-common-divisor/#257390</link>
      <description>: The single error for checking for negative integers is still not working, and proving to be the trailing factor in my program. Is the condition correct i.e. if( arg1 &amp;lt; 0 || ar2 &amp;lt; 0 )?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
That looks fine to me.  IIRC "boolean or" has a lower precedence than the "less than" and "greater than" operators, but just in case you could add brackets to make sure the order is what you want.  So:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
if ((arg1 &amp;lt; 0) || (arg2 &amp;lt; 0)) {
  // stuff here
}
&lt;/pre&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/257390/re-java-program---greatest-common-divisor/#257390</guid>
      <pubDate>Mon, 03 May 2004 10:55:31 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/257410/re-java-program---greatest-common-divisor/#257410</link>
      <description>Unfortunatly the brakects dont seem to have worked. I'm almost 100% certain I am entering the correct arguments. For example, I pass in 10 &amp;amp; 100 as two arguments, and expect the GCD to be 10; which I get. However if I pass in 100 and -10; the program seems to go one infinitly.&lt;br /&gt;
&lt;br /&gt;
As I said before; all other error checks work - it's just this blighter!&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/257410/re-java-program---greatest-common-divisor/#257410</guid>
      <pubDate>Mon, 03 May 2004 13:47:00 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/257429/re-java-program---greatest-common-divisor/#257429</link>
      <description>&lt;strong&gt;&lt;span style="color: Red;"&gt;This message was edited by Manning at  2004-5-3 16:23:51&lt;/span&gt;&lt;/strong&gt;&lt;hr /&gt;&lt;br /&gt;
: Unfortunatly the brakects dont seem to have worked. I'm almost 100% certain I am entering the correct arguments. For example, I pass in 10 &amp;amp; 100 as two arguments, and expect the GCD to be 10; which I get. However if I pass in 100 and -10; the program seems to go one infinitly.&lt;br /&gt;
: &lt;br /&gt;
: As I said before; all other error checks work - it's just this blighter!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Ahh I just took a closer look at the code.  You have your error checking AFTER you call your gcdCalc() function.  It needs to go before of course, otherwise it's kind of useless.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/257429/re-java-program---greatest-common-divisor/#257429</guid>
      <pubDate>Mon, 03 May 2004 16:23:10 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/257469/re-java-program---greatest-common-divisor/#257469</link>
      <description>Good man Manning problem sorted&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/257469/re-java-program---greatest-common-divisor/#257469</guid>
      <pubDate>Tue, 04 May 2004 00:11:14 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/258196/re-java-program---greatest-common-divisor/#258196</link>
      <description>: I have been asked to create a java program which will calculate the Greatest Common Divisor of two integer arguments. I have so far got this:&lt;br /&gt;
: &lt;br /&gt;
: &lt;pre class="sourcecode"&gt;
: import java.lang.*;
: import java.math.*;
: 
: public class Gcd {
: 
: public static int gcdCalc ( int int1, int int2 ) {

:               int gcd;
: 		if( int1 == int2) {
: 			gcd = int1;
: 		}//if
: 
: 		else {
: 			while ( int1 != int2) {
: 
: 				if( int1 &amp;gt; int2 ) {
: 					int1 = int1 - int2;
: 				}//nested-if
: 
: 				else {
: 					int2 = int2 - int1;
: 				}//nested-else
: 			}//while
: 		}//else
: 
: 		return( gcd );
: 
: 	}//gcdCalc
: 
: 
: 	public static void main( String args[] ) {
: 
: 		int arg1 = Integer.parseInt( args[0] );
: 		int arg2 = Integer.parseInt( args[1] );
: 
: 		int endGcd = gcdCalc( arg1, arg2 );
: 
: 		System.out.println( "The GCD for Integers " + arg1 + " and " + arg2 + " is " + endGcd );
: 	}//main
: 
: }//Gcd class
: &lt;/pre&gt;&lt;br /&gt;
: &lt;br /&gt;
: The program as it stands will not compile and the errors I cannot seem to fix&lt;br /&gt;
: &lt;br /&gt;
: &lt;strong&gt;&lt;span style="color: Blue;"&gt;Errors:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
: &lt;br /&gt;
: cannot resolve symbol&lt;br /&gt;
: symbol  : variable gcd &lt;br /&gt;
: location: class Gcd&lt;br /&gt;
: 			gcd = int1;&lt;br /&gt;
:                         ^&lt;br /&gt;
: cannot resolve symbol&lt;br /&gt;
: symbol  : variable gcd &lt;br /&gt;
: location: class Gcd&lt;br /&gt;
: 		return( gcd );&lt;br /&gt;
:                         ^&lt;br /&gt;
: [/blue]&lt;br /&gt;
: &lt;br /&gt;
: Any suggestions?&lt;br /&gt;
: &lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/258196/re-java-program---greatest-common-divisor/#258196</guid>
      <pubDate>Sat, 08 May 2004 02:36:19 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/430385/re-java-program---greatest-common-divisor/#430385</link>
      <description>import java.lang.*;&lt;br /&gt;
import java.math.*;&lt;br /&gt;
import java.io.*;&lt;br /&gt;
&lt;br /&gt;
public class Gcd {&lt;br /&gt;
&lt;br /&gt;
public static int gcdCalc ( int int1, int int2 )&lt;br /&gt;
{ int gcd=0;&lt;br /&gt;
&lt;br /&gt;
		if( int1 == int2) {&lt;br /&gt;
			gcd = int1;&lt;br /&gt;
		}//if&lt;br /&gt;
&lt;br /&gt;
		else {&lt;br /&gt;
			while ( int1 != int2) &lt;br /&gt;
			{&lt;br /&gt;
&lt;br /&gt;
				if( int1 &amp;gt; int2 ) {&lt;br /&gt;
					int1 = int1 - int2;&lt;br /&gt;
					gcd=int1;&lt;br /&gt;
			}//nested-if&lt;br /&gt;
&lt;br /&gt;
				else {&lt;br /&gt;
					int2 = int2 - int1;&lt;br /&gt;
					gcd=int2;&lt;br /&gt;
				}//nested-else&lt;br /&gt;
			}//while&lt;br /&gt;
		}//else&lt;br /&gt;
&lt;br /&gt;
		return( gcd );&lt;br /&gt;
&lt;br /&gt;
	}//gcdCalc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	public static void main( String args[] )throws IOException&lt;br /&gt;
	{&lt;br /&gt;
	BufferedReader br=new BufferedReader(new InputStreamReader(System.in));&lt;br /&gt;
System.out.println("enter the numbers ");&lt;br /&gt;
		int arg1 = Integer.parseInt(br.readLine());&lt;br /&gt;
		int arg2 = Integer.parseInt(br.readLine());&lt;br /&gt;
		int endGcd = gcdCalc( arg1, arg2 );&lt;br /&gt;
&lt;br /&gt;
		System.out.println( "The GCD for Integers " + arg1 + " and " + arg2 + " is " + endGcd );&lt;br /&gt;
	}//main&lt;br /&gt;
&lt;br /&gt;
}//Gcd class&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/430385/re-java-program---greatest-common-divisor/#430385</guid>
      <pubDate>Fri, 23 Nov 2012 13:07:43 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/430386/re-java-program---greatest-common-divisor/#430386</link>
      <description>import java.lang.*;&lt;br /&gt;
import java.math.*;&lt;br /&gt;
import java.io.*;&lt;br /&gt;
&lt;br /&gt;
public class Gcd {&lt;br /&gt;
&lt;br /&gt;
public static int gcdCalc ( int int1, int int2 )&lt;br /&gt;
{ int gcd=0;&lt;br /&gt;
&lt;br /&gt;
		if( int1 == int2) {&lt;br /&gt;
			gcd = int1;&lt;br /&gt;
		}//if&lt;br /&gt;
&lt;br /&gt;
		else {&lt;br /&gt;
			while ( int1 != int2) &lt;br /&gt;
			{&lt;br /&gt;
&lt;br /&gt;
				if( int1 &amp;gt; int2 ) {&lt;br /&gt;
					int1 = int1 - int2;&lt;br /&gt;
					gcd=int1;&lt;br /&gt;
			}//nested-if&lt;br /&gt;
&lt;br /&gt;
				else {&lt;br /&gt;
					int2 = int2 - int1;&lt;br /&gt;
					gcd=int2;&lt;br /&gt;
				}//nested-else&lt;br /&gt;
			}//while&lt;br /&gt;
		}//else&lt;br /&gt;
&lt;br /&gt;
		return( gcd );&lt;br /&gt;
&lt;br /&gt;
	}//gcdCalc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	public static void main( String args[] )throws IOException&lt;br /&gt;
	{&lt;br /&gt;
	BufferedReader br=new BufferedReader(new InputStreamReader(System.in));&lt;br /&gt;
System.out.println("enter the numbers ");&lt;br /&gt;
		int arg1 = Integer.parseInt(br.readLine());&lt;br /&gt;
		int arg2 = Integer.parseInt(br.readLine());&lt;br /&gt;
		int endGcd = gcdCalc( arg1, arg2 );&lt;br /&gt;
&lt;br /&gt;
		System.out.println( "The GCD for Integers " + arg1 + " and " + arg2 + " is " + endGcd );&lt;br /&gt;
	}//main&lt;br /&gt;
&lt;br /&gt;
}//Gcd class&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/430386/re-java-program---greatest-common-divisor/#430386</guid>
      <pubDate>Fri, 23 Nov 2012 13:09:45 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/430387/re-java-program---greatest-common-divisor/#430387</link>
      <description>import java.lang.*;&lt;br /&gt;
import java.math.*;&lt;br /&gt;
import java.io.*;&lt;br /&gt;
&lt;br /&gt;
public class Gcd {&lt;br /&gt;
&lt;br /&gt;
public static int gcdCalc ( int int1, int int2 )&lt;br /&gt;
{ int gcd=0;&lt;br /&gt;
&lt;br /&gt;
		if( int1 == int2) {&lt;br /&gt;
			gcd = int1;&lt;br /&gt;
		}//if&lt;br /&gt;
&lt;br /&gt;
		else {&lt;br /&gt;
			while ( int1 != int2) &lt;br /&gt;
			{&lt;br /&gt;
&lt;br /&gt;
				if( int1 &amp;gt; int2 ) {&lt;br /&gt;
					int1 = int1 - int2;&lt;br /&gt;
					gcd=int1;&lt;br /&gt;
			}//nested-if&lt;br /&gt;
&lt;br /&gt;
				else {&lt;br /&gt;
					int2 = int2 - int1;&lt;br /&gt;
					gcd=int2;&lt;br /&gt;
				}//nested-else&lt;br /&gt;
			}//while&lt;br /&gt;
		}//else&lt;br /&gt;
&lt;br /&gt;
		return( gcd );&lt;br /&gt;
&lt;br /&gt;
	}//gcdCalc&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
	public static void main( String args[] )throws IOException&lt;br /&gt;
	{&lt;br /&gt;
	BufferedReader br=new BufferedReader(new InputStreamReader(System.in));&lt;br /&gt;
System.out.println("enter the numbers ");&lt;br /&gt;
		int arg1 = Integer.parseInt(br.readLine());&lt;br /&gt;
		int arg2 = Integer.parseInt(br.readLine());&lt;br /&gt;
		int endGcd = gcdCalc( arg1, arg2 );&lt;br /&gt;
&lt;br /&gt;
		System.out.println( "The GCD for Integers " + arg1 + " and " + arg2 + " is " + endGcd );&lt;br /&gt;
	}//main&lt;br /&gt;
&lt;br /&gt;
}//Gcd class&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/430387/re-java-program---greatest-common-divisor/#430387</guid>
      <pubDate>Fri, 23 Nov 2012 13:11:35 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/430800/re-java-program---greatest-common-divisor/#430800</link>
      <description>Helpful, thanks.&lt;br /&gt;
___&lt;br /&gt;
&lt;a href="http://ememstudio.com.pl/o-mnie/"&gt;Architekt wnętrz poznań&lt;/a&gt; na pokazy.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/430800/re-java-program---greatest-common-divisor/#430800</guid>
      <pubDate>Thu, 03 Jan 2013 09:42:05 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Java Program - Greatest Common Divisor</title>
      <link>http://www.programmersheaven.com/mb/java/257172/430801/re-java-program---greatest-common-divisor/#430801</link>
      <description>Helpful, thanks.&lt;br /&gt;
___&lt;br /&gt;
&lt;a href="http://ememstudio.com.pl/"&gt;Projektowanie wnętrz poznań&lt;/a&gt; na pokazy.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/257172/430801/re-java-program---greatest-common-divisor/#430801</guid>
      <pubDate>Thu, 03 Jan 2013 09:43:55 -0700</pubDate>
      <category>Java</category>
    </item>
  </channel>
</rss>