<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.0.4" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Hrvatski web hosting blog</title>
	<link>http://www.gamahosting.net/blog</link>
	<description>Blog o hrvaskim web hosting uslugama</description>
	<pubDate>Mon, 05 Feb 2007 16:15:33 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.4</generator>
	<language>en</language>
			<item>
		<title>[ Team LiB ] Page 652</title>
		<link>http://www.gamahosting.net/blog/2007/02/05/team-lib-page-652/</link>
		<comments>http://www.gamahosting.net/blog/2007/02/05/team-lib-page-652/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 16:15:33 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>hrvatski</category>
		<guid isPermaLink="false">http://www.gamahosting.net/blog/2007/02/05/team-lib-page-652/</guid>
		<description><![CDATA[[ Team LiB ]    Page 652    Hint: If you are looking for good and high quality web space to host and run your java application check Vision java web hosting services

]]></description>
			<content:encoded><![CDATA[<p>[ Team LiB ]    Page 652    <br />Hint: If you are looking for good and high quality web space to host and run your java application check Vision <a target="_blank" href="http://www.visionwebhosting.net">java web hosting</a> services
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.gamahosting.net/blog/2007/02/05/team-lib-page-652/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>[ Team LiB ] Page 652</title>
		<link>http://www.gamahosting.net/blog/2007/02/05/team-lib-page-652-2/</link>
		<comments>http://www.gamahosting.net/blog/2007/02/05/team-lib-page-652-2/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 16:15:33 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>hrvatski</category>
		<guid isPermaLink="false">http://www.gamahosting.net/blog/2007/02/05/team-lib-page-652-2/</guid>
		<description><![CDATA[[ Team LiB ]    7 Nested Classes and Interfaces   7.1   // Filename: Exercise3.java interface Function { public int evaluate(int arg); }   class Half implements Function { public int evaluate(int arg) { return arg/2; } }   class Print implements Function {  public int evaluate(int [...]]]></description>
			<content:encoded><![CDATA[<p>[ Team LiB ]    7 Nested Classes and Interfaces   7.1   // Filename: Exercise3.java interface Function { public int evaluate(int arg); }   class Half implements Function { public int evaluate(int arg) { return arg/2; } }   class Print implements Function {  public int evaluate(int arg) { System.out.println(arg); return arg;   } }   public class Exercise3 { /* Inner class that applies the function, prints the value, and  returns the result. */ static class PrintFunc extends Print { PrintFunc(Function f) { func = f; }   Function func;   public int evaluate(int arg) { return super.evaluate(func.evaluate(arg)); } }   // Inner class that just returns the argument unchanged. /* Use this when you want a PrintFunc object to printthe argument as-is. */ static class NoOpFunc implements Function { public int evaluate(int arg) { return arg; } }   public static void main(String[] args) { // Create array with values 1 .. 10 int[] myArr = new int[10]; for (int i=0; i<10;) myArr[i] = ++i;    // Print array without modificationapplyFunctionToArray(myArr, new PrintFunc(new   Page 653    <br />Hint: If you are looking for good and high quality web space to host and run your java application check Vision <a target="_blank" href="http://www.visionwebhosting.net">java web hosting</a> services
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.gamahosting.net/blog/2007/02/05/team-lib-page-652-2/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>[ Team LiB ] Page 652</title>
		<link>http://www.gamahosting.net/blog/2007/02/05/team-lib-page-652-3/</link>
		<comments>http://www.gamahosting.net/blog/2007/02/05/team-lib-page-652-3/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 16:15:33 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>hrvatski</category>
		<guid isPermaLink="false">http://www.gamahosting.net/blog/2007/02/05/team-lib-page-652-3/</guid>
		<description><![CDATA[[ Team LiB ]    Page 654    Hint: If you are looking for good and high quality web space to host and run your java application check Vision java web hosting services

]]></description>
			<content:encoded><![CDATA[<p>[ Team LiB ]    Page 654    <br />Hint: If you are looking for good and high quality web space to host and run your java application check Vision <a target="_blank" href="http://www.visionwebhosting.net">java web hosting</a> services
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.gamahosting.net/blog/2007/02/05/team-lib-page-652-3/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Page 649</title>
		<link>http://www.gamahosting.net/blog/2007/02/05/page-649-3/</link>
		<comments>http://www.gamahosting.net/blog/2007/02/05/page-649-3/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 08:29:04 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>hrvatski</category>
		<guid isPermaLink="false">http://www.gamahosting.net/blog/2007/02/05/page-649-3/</guid>
		<description><![CDATA[[ Team LiB ]    6 Object-oriented Programming   6.1   // Filename: Exercise1.java interface Function { public int evaluate(int arg); }   class Half implements Function { public int evaluate(int arg) { return arg/2; } }   public class Exercise1 {  public static int[] applyFunctionToArray(int[] arrIn) { [...]]]></description>
			<content:encoded><![CDATA[<p>[ Team LiB ]    6 Object-oriented Programming   6.1   // Filename: Exercise1.java interface Function { public int evaluate(int arg); }   class Half implements Function { public int evaluate(int arg) { return arg/2; } }   public class Exercise1 {  public static int[] applyFunctionToArray(int[] arrIn) { int length = arrIn.length; int[] arrOut = new int[length];   Function func = new Half();   for (int i=0; i< length; i++) arrOut[i] = func.evaluate(arrIn[i]);   return arrOut; } }   6.2  // Filename: Exercise2.java interface Function { public int evaluate(int arg); }   class Half implements Function { public int evaluate(int arg) { return arg/2; } }   class Print implements Function {  public int evaluate(int arg) { System.out.println(arg); return arg;   } }   public class Exercise2 {  public static void main(String[] args) { // Create array with values 1 .. 10 int[] myArr = new int[10];   Page 651    </p>
<p>Hint: If you are looking for high quality and reliable webspace provider to host and run your jsp hosting application check Sandzak <a target="_blank" href="http://www.sandzak.com/blog/">jsp web hosting</a> provider
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.gamahosting.net/blog/2007/02/05/page-649-3/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Page 649</title>
		<link>http://www.gamahosting.net/blog/2007/02/05/page-649/</link>
		<comments>http://www.gamahosting.net/blog/2007/02/05/page-649/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 08:29:03 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>hrvatski</category>
		<guid isPermaLink="false">http://www.gamahosting.net/blog/2007/02/05/page-649/</guid>
		<description><![CDATA[Page 649    
Hint: If you are looking for high quality and reliable webspace provider to host and run your jsp hosting application check Sandzak jsp web hosting provider

]]></description>
			<content:encoded><![CDATA[<p>Page 649    </p>
<p>Hint: If you are looking for high quality and reliable webspace provider to host and run your jsp hosting application check Sandzak <a target="_blank" href="http://www.sandzak.com/blog/">jsp web hosting</a> provider
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.gamahosting.net/blog/2007/02/05/page-649/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>Page 649</title>
		<link>http://www.gamahosting.net/blog/2007/02/05/page-649-2/</link>
		<comments>http://www.gamahosting.net/blog/2007/02/05/page-649-2/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 08:29:03 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>hrvatski</category>
		<guid isPermaLink="false">http://www.gamahosting.net/blog/2007/02/05/page-649-2/</guid>
		<description><![CDATA[[ Team LiB ]    Page 650    
Hint: If you are looking for high quality and reliable webspace provider to host and run your jsp hosting application check Sandzak jsp web hosting provider

]]></description>
			<content:encoded><![CDATA[<p>[ Team LiB ]    Page 650    </p>
<p>Hint: If you are looking for high quality and reliable webspace provider to host and run your jsp hosting application check Sandzak <a target="_blank" href="http://www.sandzak.com/blog/">jsp web hosting</a> provider
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.gamahosting.net/blog/2007/02/05/page-649-2/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>[ Team LiB ] Page 646</title>
		<link>http://www.gamahosting.net/blog/2007/02/04/team-lib-page-646-3/</link>
		<comments>http://www.gamahosting.net/blog/2007/02/04/team-lib-page-646-3/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 02:39:06 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>hrvatski</category>
		<guid isPermaLink="false">http://www.gamahosting.net/blog/2007/02/04/team-lib-page-646-3/</guid>
		<description><![CDATA[Page 648    Hint: If you are looking for good and high quality web space to host and run your java application check Vision java web hosting services

]]></description>
			<content:encoded><![CDATA[<p>Page 648    <br />Hint: If you are looking for good and high quality web space to host and run your java application check Vision <a target="_blank" href="http://www.visionwebhosting.net">java web hosting</a> services
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.gamahosting.net/blog/2007/02/04/team-lib-page-646-3/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>[ Team LiB ] Page 646</title>
		<link>http://www.gamahosting.net/blog/2007/02/04/team-lib-page-646/</link>
		<comments>http://www.gamahosting.net/blog/2007/02/04/team-lib-page-646/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 02:39:05 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>hrvatski</category>
		<guid isPermaLink="false">http://www.gamahosting.net/blog/2007/02/04/team-lib-page-646/</guid>
		<description><![CDATA[[ Team LiB ]    Page 646    Hint: If you are looking for good and high quality web space to host and run your java application check Vision java web hosting services

]]></description>
			<content:encoded><![CDATA[<p>[ Team LiB ]    Page 646    <br />Hint: If you are looking for good and high quality web space to host and run your java application check Vision <a target="_blank" href="http://www.visionwebhosting.net">java web hosting</a> services
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.gamahosting.net/blog/2007/02/04/team-lib-page-646/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>[ Team LiB ] Page 646</title>
		<link>http://www.gamahosting.net/blog/2007/02/04/team-lib-page-646-2/</link>
		<comments>http://www.gamahosting.net/blog/2007/02/04/team-lib-page-646-2/#comments</comments>
		<pubDate>Mon, 05 Feb 2007 02:39:05 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>hrvatski</category>
		<guid isPermaLink="false">http://www.gamahosting.net/blog/2007/02/04/team-lib-page-646-2/</guid>
		<description><![CDATA[[ Team LiB ]    5 Control Flow, Exception Handling, and Assertions   5.1 Finding primes using for-loops.  // Filename: ForPrimes.java  public class ForPrimes { final static int MAX = 100; public static void main(String[] args) {   numbers:  for (int num = 1; num < MAX; num++) [...]]]></description>
			<content:encoded><![CDATA[<p>[ Team LiB ]    5 Control Flow, Exception Handling, and Assertions   5.1 Finding primes using for-loops.  // Filename: ForPrimes.java  public class ForPrimes { final static int MAX = 100; public static void main(String[] args) {   numbers:  for (int num = 1; num < MAX; num++) { int divLim = (int) Math.sqrt(num);   for (int div = 2; div <= divLim; div++) if ((num % div) == 0) continue numbers; System.out.println(num); } } }   Finding primes using while-loops.   // Filename: WhilePrimes.java public class WhilePrimes { final static int MAX = 100;    public static void main(String[] args) { int num = 1;    numbers:  while (num < MAX) { int number = num++;    int divLim = (int) Math.sqrt(number); int div = 2; while (div <= divLim)   if ((number % div++) == 0) continue numbers; System.out.println(number); } } }   5.2  /** A PowerPlant with a reactor core. */ public class PowerPlant { /** Each power plant has a reactor core. This has packageaccessibility so that the Control class which is definedin  the same package can access it. */ Reactor core;   /** Create and initialize the PowerPlant with a reactor core.   Page 647    <br />Hint: If you are looking for good and high quality web space to host and run your java application check Vision <a target="_blank" href="http://www.visionwebhosting.net">java web hosting</a> services
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.gamahosting.net/blog/2007/02/04/team-lib-page-646-2/feed/</wfw:commentRSS>
		</item>
		<item>
		<title>[ Team LiB ] 3 Operators and Assignments</title>
		<link>http://www.gamahosting.net/blog/2007/02/04/team-lib-3-operators-and-assignments-4/</link>
		<comments>http://www.gamahosting.net/blog/2007/02/04/team-lib-3-operators-and-assignments-4/#comments</comments>
		<pubDate>Sun, 04 Feb 2007 21:40:58 +0000</pubDate>
		<dc:creator>webmaster</dc:creator>
		
	<category>hrvatski</category>
		<guid isPermaLink="false">http://www.gamahosting.net/blog/2007/02/04/team-lib-3-operators-and-assignments-4/</guid>
		<description><![CDATA[[ Team LiB ]    3 Operators and Assignments   3.1 The following program will compile and run without errors:  // Filename: Sunlight.java  public class Sunlight {  public static void main(String[] args) {  // Distance from sun (150 million kilometers)  /* The max value for int is [...]]]></description>
			<content:encoded><![CDATA[<p>[ Team LiB ]    3 Operators and Assignments   3.1 The following program will compile and run without errors:  // Filename: Sunlight.java  public class Sunlight {  public static void main(String[] args) {  // Distance from sun (150 million kilometers)  /* The max value for int is 2147483647, so using int here  will   work. */  int kmFromSun = 150000000;   // Again, using int for this value is OK.  int lightSpeed = 299792458; // Meters per second   // Convert distance to meters.  /* The result of this equation will not fit in an int.  Let&#8217;s   use a long instead. We need to ensure that the values  that   are multiplied really are multiplied using long  data types, not multiplied as int data types and later  converted to long. The L suffix on the 1000L integer  literal ensures this. The value of kmFromSun will   implicitly be converted from int to long to match the  data type of the other factor. The conversion can be  done   implicitly by the compiler since the conversion  represents   a widening of the data type. */  long mFromSun = kmFromSun * 1000L;  /* We know that the result value will fit in an int, but  the   compiler does not. We use an explicit cast to convince  the   compiler. The conversion must be specified explicitly,  since   the conversion represents a narrowing of the data type.  */   int seconds = (int) (mFromSun / lightSpeed);   System.out.print(&#8221;Light will use &#8220;);  printTime(seconds);  System.out.println(&#8221; to travel from the sun to the  earth.&#8221;);  }   /* We leave this method alone. */  public static void printTime(int sec) {  int min = sec / 60;  sec = sec - (min*60);  System.out.print(min + &#8221; minute(s) and &#8221; + sec + &#8221;   Page 643    <br />Note: If you are looking for best hosting provider to host and run your tomcat application check Astra <a target="_blank" href="http://www.omnicus.net/">tomcat hosting</a> services
</p>
]]></content:encoded>
			<wfw:commentRSS>http://www.gamahosting.net/blog/2007/02/04/team-lib-3-operators-and-assignments-4/feed/</wfw:commentRSS>
		</item>
	</channel>
</rss>
