<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>Java Forum RSS Feed (Replies Included)</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the 'Java' forum at Programmer's Heaven, including replies.</description>
    <language>en</language>
    <copyright>Copyright 2009 Programmers Heaven</copyright>
    <pubDate>Fri, 20 Nov 2009 20:09:01 -0700</pubDate>
    <lastBuildDate>Fri, 20 Nov 2009 20:09:01 -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>not displaying image</title>
      <link>http://www.programmersheaven.com/mb/java/409596/409596/not-displaying-image/</link>
      <description>hey folks, I really do need some help with this one.  All I'm trying to do is display an image to my oanvas on a mobile handheld running WM5 os. &lt;br /&gt;
&lt;br /&gt;
ITS NOT WORKING!&lt;br /&gt;
&lt;br /&gt;
I run my app on my laptop through everything works and shows up okay.  When I exported to a .jar file from Eclipse, I uploaded it to my device where I have a JVM.  &lt;br /&gt;
&lt;br /&gt;
Am I missing any something here?  Would I need another JVM or something?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-=The Best Has Yet To Come=-</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409596/409596/not-displaying-image/</guid>
      <pubDate>Thu, 19 Nov 2009 07:30:20 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Can you figure out whats wrong with my RPN calculator?</title>
      <link>http://www.programmersheaven.com/mb/java/409540/409540/can-you-figure-out-whats-wrong-with-my-rpn-calculator/</link>
      <description>Im trying to implement a node based stack. The class RPN is a calculator where the arguments precede the operators. EG:&lt;br /&gt;
&lt;br /&gt;
input: "25 54 +"&lt;br /&gt;
output: 79&lt;br /&gt;
&lt;br /&gt;
input "2 25 54 + * "&lt;br /&gt;
output: 158&lt;br /&gt;
&lt;br /&gt;
;-------------------------&lt;br /&gt;
&lt;br /&gt;
import java.util.Random;&lt;br /&gt;
&lt;br /&gt;
class SLNode&lt;br /&gt;
{&lt;br /&gt;
   SLNode   next;    // the next node in the chain&lt;br /&gt;
   Object  element; // the element itself&lt;br /&gt;
&lt;br /&gt;
   SLNode(Object e, SLNode n)&lt;br /&gt;
   {&lt;br /&gt;
      element = e;&lt;br /&gt;
      next    = n;&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
class StackLab&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
   SLNode stack; // chained list of SLNodes&lt;br /&gt;
   int   size;  // number of elements in the stack&lt;br /&gt;
        &lt;br /&gt;
   StackLab()&lt;br /&gt;
   {&lt;br /&gt;
		stack = null;&lt;br /&gt;
		size = 0;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   public boolean push(Object element)&lt;br /&gt;
   {&lt;br /&gt;
      stack = new SLNode(element, stack);&lt;br /&gt;
	  size += 1;&lt;br /&gt;
	  return true;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   public Object pop()&lt;br /&gt;
   {&lt;br /&gt;
	  if(size == 0)&lt;br /&gt;
		  return null;&lt;br /&gt;
&lt;br /&gt;
      Object element = stack.element;&lt;br /&gt;
      stack = stack.next;&lt;br /&gt;
	  size -= 1;&lt;br /&gt;
      return element;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   public Object peek() {&lt;br /&gt;
	  if(size == 0)&lt;br /&gt;
      return null;&lt;br /&gt;
	  else&lt;br /&gt;
		  return stack.element;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   public int size()&lt;br /&gt;
   {&lt;br /&gt;
      return size;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
class RPN&lt;br /&gt;
{&lt;br /&gt;
   static public void main(String[] args)&lt;br /&gt;
   {&lt;br /&gt;
      StackLab stack = new StackLab();&lt;br /&gt;
&lt;br /&gt;
      while ( ! Console.endOfFile() )&lt;br /&gt;
      {&lt;br /&gt;
		  String token = Console.readToken();&lt;br /&gt;
	 &lt;br /&gt;
	 &lt;br /&gt;
		  if(Tester.isNum(token) == true)&lt;br /&gt;
		  {&lt;br /&gt;
			stack.push(token);&lt;br /&gt;
		  }&lt;br /&gt;
&lt;br /&gt;
		 else if(token == "+")&lt;br /&gt;
		 {&lt;br /&gt;
			int x = (int) (Integer) stack.pop();&lt;br /&gt;
			int y = (int) (Integer) stack.pop();&lt;br /&gt;
&lt;br /&gt;
			int tempResult = x + y;&lt;br /&gt;
			stack.push(tempResult);&lt;br /&gt;
		 }&lt;br /&gt;
&lt;br /&gt;
		 else if(token == "-")&lt;br /&gt;
		 {&lt;br /&gt;
			int x = (int) (Integer) stack.pop();&lt;br /&gt;
			int y = (int) (Integer) stack.pop();&lt;br /&gt;
&lt;br /&gt;
			int tempResult = x - y;&lt;br /&gt;
			stack.push(tempResult);&lt;br /&gt;
		 }&lt;br /&gt;
&lt;br /&gt;
		 else if(token == "/")&lt;br /&gt;
		 {&lt;br /&gt;
			int x = (int) (Integer) stack.pop();&lt;br /&gt;
			int y = (int) (Integer) stack.pop();&lt;br /&gt;
&lt;br /&gt;
			int tempResult = x / y;&lt;br /&gt;
			stack.push(tempResult);&lt;br /&gt;
		 }&lt;br /&gt;
&lt;br /&gt;
		 else if(token == "*")&lt;br /&gt;
		 {&lt;br /&gt;
			int x = (int) (Integer) stack.pop();&lt;br /&gt;
			int y = (int) (Integer) stack.pop();&lt;br /&gt;
			int tempResult = x * y;&lt;br /&gt;
			stack.push(tempResult);&lt;br /&gt;
		 }&lt;br /&gt;
	  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		   assert stack.size() == 1;&lt;br /&gt;
		   int result = (int) (Integer) stack.pop();&lt;br /&gt;
		   System.out.println(result);&lt;br /&gt;
	  &lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
;---------------------------------------&lt;br /&gt;
&lt;br /&gt;
At the moment, the program produces no output when the string is entered from the console. When it is entered from a file, It just prints the second number entered, on its own.&lt;br /&gt;
&lt;br /&gt;
Any help is much appreciated. Thanks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409540/409540/can-you-figure-out-whats-wrong-with-my-rpn-calculator/</guid>
      <pubDate>Wed, 18 Nov 2009 18:57:55 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Can you figure out whats wrong with my RPN calculator?</title>
      <link>http://www.programmersheaven.com/mb/java/409539/409539/can-you-figure-out-whats-wrong-with-my-rpn-calculator/</link>
      <description>Im trying to implement a node based stack. The class RPN is a calculator where the arguments precede the operators. EG:&lt;br /&gt;
&lt;br /&gt;
input: "25 54 +"&lt;br /&gt;
output: 79&lt;br /&gt;
&lt;br /&gt;
input "2 25 54 + * "&lt;br /&gt;
output: 158&lt;br /&gt;
&lt;br /&gt;
;-------------------------&lt;br /&gt;
&lt;br /&gt;
import java.util.Random;&lt;br /&gt;
&lt;br /&gt;
class SLNode&lt;br /&gt;
{&lt;br /&gt;
   SLNode   next;    // the next node in the chain&lt;br /&gt;
   Object  element; // the element itself&lt;br /&gt;
&lt;br /&gt;
   SLNode(Object e, SLNode n)&lt;br /&gt;
   {&lt;br /&gt;
      element = e;&lt;br /&gt;
      next    = n;&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
class StackLab&lt;br /&gt;
{&lt;br /&gt;
&lt;br /&gt;
   SLNode stack; // chained list of SLNodes&lt;br /&gt;
   int   size;  // number of elements in the stack&lt;br /&gt;
        &lt;br /&gt;
   StackLab()&lt;br /&gt;
   {&lt;br /&gt;
		stack = null;&lt;br /&gt;
		size = 0;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   public boolean push(Object element)&lt;br /&gt;
   {&lt;br /&gt;
      stack = new SLNode(element, stack);&lt;br /&gt;
	  size += 1;&lt;br /&gt;
	  return true;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   public Object pop()&lt;br /&gt;
   {&lt;br /&gt;
	  if(size == 0)&lt;br /&gt;
		  return null;&lt;br /&gt;
&lt;br /&gt;
      Object element = stack.element;&lt;br /&gt;
      stack = stack.next;&lt;br /&gt;
	  size -= 1;&lt;br /&gt;
      return element;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   public Object peek() {&lt;br /&gt;
	  if(size == 0)&lt;br /&gt;
      return null;&lt;br /&gt;
	  else&lt;br /&gt;
		  return stack.element;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
   public int size()&lt;br /&gt;
   {&lt;br /&gt;
      return size;&lt;br /&gt;
   }&lt;br /&gt;
&lt;br /&gt;
  &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
class RPN&lt;br /&gt;
{&lt;br /&gt;
   static public void main(String[] args)&lt;br /&gt;
   {&lt;br /&gt;
      StackLab stack = new StackLab();&lt;br /&gt;
&lt;br /&gt;
      while ( ! Console.endOfFile() )&lt;br /&gt;
      {&lt;br /&gt;
		  String token = Console.readToken();&lt;br /&gt;
	 &lt;br /&gt;
	 &lt;br /&gt;
		  if(Tester.isNum(token) == true)&lt;br /&gt;
		  {&lt;br /&gt;
			stack.push(token);&lt;br /&gt;
		  }&lt;br /&gt;
&lt;br /&gt;
		 else if(token == "+")&lt;br /&gt;
		 {&lt;br /&gt;
			int x = (int) (Integer) stack.pop();&lt;br /&gt;
			int y = (int) (Integer) stack.pop();&lt;br /&gt;
&lt;br /&gt;
			int tempResult = x + y;&lt;br /&gt;
			stack.push(tempResult);&lt;br /&gt;
		 }&lt;br /&gt;
&lt;br /&gt;
		 else if(token == "-")&lt;br /&gt;
		 {&lt;br /&gt;
			int x = (int) (Integer) stack.pop();&lt;br /&gt;
			int y = (int) (Integer) stack.pop();&lt;br /&gt;
&lt;br /&gt;
			int tempResult = x - y;&lt;br /&gt;
			stack.push(tempResult);&lt;br /&gt;
		 }&lt;br /&gt;
&lt;br /&gt;
		 else if(token == "/")&lt;br /&gt;
		 {&lt;br /&gt;
			int x = (int) (Integer) stack.pop();&lt;br /&gt;
			int y = (int) (Integer) stack.pop();&lt;br /&gt;
&lt;br /&gt;
			int tempResult = x / y;&lt;br /&gt;
			stack.push(tempResult);&lt;br /&gt;
		 }&lt;br /&gt;
&lt;br /&gt;
		 else if(token == "*")&lt;br /&gt;
		 {&lt;br /&gt;
			int x = (int) (Integer) stack.pop();&lt;br /&gt;
			int y = (int) (Integer) stack.pop();&lt;br /&gt;
			int tempResult = x * y;&lt;br /&gt;
			stack.push(tempResult);&lt;br /&gt;
		 }&lt;br /&gt;
	  }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
		   assert stack.size() == 1;&lt;br /&gt;
		   int result = (int) (Integer) stack.pop();&lt;br /&gt;
		   System.out.println(result);&lt;br /&gt;
	  &lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
;---------------------------------------&lt;br /&gt;
&lt;br /&gt;
At the moment, the program produces no output when the string is entered from the console. When it is entered from a file, It just prints the second number entered, on its own.&lt;br /&gt;
&lt;br /&gt;
Any help is much appreciated. Thanks.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409539/409539/can-you-figure-out-whats-wrong-with-my-rpn-calculator/</guid>
      <pubDate>Wed, 18 Nov 2009 18:56:08 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: what wrong with my java code</title>
      <link>http://www.programmersheaven.com/mb/java/409527/409538/re-what-wrong-with-my-java-code/#409538</link>
      <description>i  just remove return from familySize () but foraverageFamilyAge() it not correct&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409527/409538/re-what-wrong-with-my-java-code/#409538</guid>
      <pubDate>Wed, 18 Nov 2009 17:04:06 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: what wrong with my java code</title>
      <link>http://www.programmersheaven.com/mb/java/409527/409537/re-what-wrong-with-my-java-code/#409537</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
remove the return statements from the body of the for loops.&lt;br /&gt;
&lt;br /&gt;
Best regards&lt;br /&gt;
&lt;br /&gt;
over&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409527/409537/re-what-wrong-with-my-java-code/#409537</guid>
      <pubDate>Wed, 18 Nov 2009 15:07:13 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>what wrong with my java code</title>
      <link>http://www.programmersheaven.com/mb/java/409527/409527/what-wrong-with-my-java-code/</link>
      <description>//////////////////////////////////////////////////
////////////////////////////////////////////main//
//////////////////////////////////////////////////
//////////////////////////////&lt;br /&gt;
&lt;br /&gt;
package question2;&lt;br /&gt;
public class Main{&lt;br /&gt;
    public Main(){&lt;br /&gt;
    }&lt;br /&gt;
    public static void main(String[] args){&lt;br /&gt;
        Person grandchild1 = new Person("a", 2, new Person[0]);&lt;br /&gt;
        Person grandchild2 = new Person("b", 3, new Person[0]);&lt;br /&gt;
        Person grandchild3 = new Person("c", 7, new Person[0]);&lt;br /&gt;
        Person grandchild4 = new Person("d", 5, new Person[0]);&lt;br /&gt;
        Person grandchild5 = new Person("e", 4, new Person[0]);&lt;br /&gt;
        Person child1 = new Person("f", 35, new Person[]{grandchild1, grandchild2, grandchild3});&lt;br /&gt;
        Person child2 = new Person("g", 28, new Person[]{grandchild4, grandchild5});&lt;br /&gt;
        Person me = new Person("h", 53, new Person[]{child1, child2});&lt;br /&gt;
        Person neighbor = new Person("x", 9999, new Person[0]);&lt;br /&gt;
        System.out.println("My family size: " + me.familySize());&lt;br /&gt;
        System.out.println("My family\\\'s average age: " + me.averageFamilyAge());&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
//////////////////////////////////////////////////
//////////////////////////////////////////////////
//////////////////////////////////////////////////
/////////////////////////////////&lt;br /&gt;
&lt;br /&gt;
//////////////////////////////////////////////////
////////code//////////////////////////////////////
//////////////////////////////////////////////////
/////////////////////&lt;br /&gt;
&lt;br /&gt;
package question2;&lt;br /&gt;
public class Person&lt;br /&gt;
{&lt;br /&gt;
private String name;&lt;br /&gt;
private double age;&lt;br /&gt;
private Person[] children;&lt;br /&gt;
&lt;br /&gt;
public Person(String name,double age,Person[] children )&lt;br /&gt;
&lt;br /&gt;
        {&lt;br /&gt;
        this.name=name;&lt;br /&gt;
        this.age=age;&lt;br /&gt;
        this.children=children;&lt;br /&gt;
        }&lt;br /&gt;
&lt;br /&gt;
public int familySize ()&lt;br /&gt;
{&lt;br /&gt;
    int familycount=0;&lt;br /&gt;
    if(children==null)&lt;br /&gt;
    {&lt;br /&gt;
        return 1;&lt;br /&gt;
    }&lt;br /&gt;
    else&lt;br /&gt;
    {&lt;br /&gt;
        for(int i=0;i&amp;lt;children.length;i++)&lt;br /&gt;
        {&lt;br /&gt;
            return familycount=familycount+children[i].familySize();&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    return familycount+1;&lt;br /&gt;
}&lt;br /&gt;
public double averageFamilyAge()&lt;br /&gt;
{&lt;br /&gt;
     double avgage=0;&lt;br /&gt;
    if(children==null)&lt;br /&gt;
    {&lt;br /&gt;
        return 1;&lt;br /&gt;
    }&lt;br /&gt;
    else&lt;br /&gt;
    {&lt;br /&gt;
        for(int i=0;i&amp;lt;children.length;i++)&lt;br /&gt;
        {&lt;br /&gt;
            return avgage=avgage+children[i].averageFamilyAge();&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    return avgage;&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
//////////////////////////////////////////////////
////////////////////////////////////////////////&lt;br /&gt;
the result should be &lt;br /&gt;
&lt;br /&gt;
My family size: 8&lt;br /&gt;
My family's average age: 17.125&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
but i got &lt;br /&gt;
My family size: 1 &lt;br /&gt;
My family's average age:0.0&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409527/409527/what-wrong-with-my-java-code/</guid>
      <pubDate>Wed, 18 Nov 2009 11:46:20 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Question about Code</title>
      <link>http://www.programmersheaven.com/mb/java/409383/409383/question-about-code/</link>
      <description>Is there any way in Java to read in data, and then send export that data into other documents (such as a word document, EXCEL spreadsheet, etc.).&lt;br /&gt;
&lt;br /&gt;
If not, what language(s) would be beneficial to use to complete such a task?&lt;br /&gt;
&lt;br /&gt;
Thank you very much for your help.</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409383/409383/question-about-code/</guid>
      <pubDate>Mon, 16 Nov 2009 09:31:04 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Better integration solution of Web reporting tool</title>
      <link>http://www.programmersheaven.com/mb/java/409331/409331/better-integration-solution-of-web-reporting-tool/</link>
      <description>Background&lt;br /&gt;
Report development is only a part of application program, therefore, the integration of Web reporting tool is of great importance.&lt;br /&gt;
&lt;br /&gt;
All the traditional Web reporting tools provide an independent report server without exception. With an independent report server, the application architecture is shown below:&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://www.raqsoft.com/know-how/wp-content/uploads/2009/03/1.jpg" /&gt;&lt;br /&gt;
&lt;br /&gt;
The disadvantages of an independent report server: &lt;br /&gt;
● The independent report server communicates with application program via network protocol, and this degrades system performance seriously. &lt;br /&gt;
● It is unable to use all the advantageous functions of application server, such as the cluster capability, the management capability of connection pool, etc. &lt;br /&gt;
● Report server has an independent management mechanism of user permissions, which can not adapt the requirements of particular user role management from various industries and applications. It is insufficient, while it force application program to obey its rules. &lt;br /&gt;
● With too few APIs and weak control, it is hard to integrate.&lt;br /&gt;
&lt;br /&gt;
Solution&lt;br /&gt;
RAQ Report is a professional Web reporting tool. &lt;br /&gt;
As a pure Java reporting software, RAQ Report provides integration as Jar package to programmers. Without independent report server, application infrastructure, and independent management mechanism of user permissions, RAQ Report can help programmers to implement integration conveniently. Its application architecture is shown below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;img src="http://www.raqsoft.com/know-how/wp-content/uploads/2009/03/2.jpg" /&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The advantages of no independent report server: &lt;br /&gt;
● The server of RAQ report is submitted as Jar package or application of application server. Therefore, it can get integrated with application program seamlessly to achieve the peak operating efficiency. &lt;br /&gt;
● Share the cluster capability and the management capability of connection pool of application server. &lt;br /&gt;
● Make unified deployment. Use the user role management mechanism of Web application directly to avoid the incompatible problem of two management mechanisms. Provide a unified login screen, and end users need not to log in twice.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409331/409331/better-integration-solution-of-web-reporting-tool/</guid>
      <pubDate>Sun, 15 Nov 2009 17:46:35 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Deleted</title>
      <link>http://www.programmersheaven.com/mb/java/409308/409308/deleted/</link>
      <description>DeletedJava&lt;br /&gt;
Moderators: zibadian &lt;br /&gt;
Number of threads: 7173&lt;br /&gt;
Number of posts: 17125&lt;br /&gt;
&lt;br /&gt;
 With full replies&lt;br /&gt;
 Topics only &lt;br /&gt;
&lt;br /&gt;
JavaSubforumsForum Info&lt;br /&gt;
Edit Post&lt;br /&gt;
The following errors occurred:&lt;br /&gt;
The body of this post is too short.&lt;br /&gt;
 &lt;br /&gt;
Subject:&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Message:&lt;br /&gt;
          -- Size -- 1 2 3 4 5     -- Colour -- Black Blue Green Grey Orange Pink Purple Red White Yellow        Deleted&lt;br /&gt;
&lt;br /&gt;
Style Code&lt;br /&gt;
Before you start using style-codes, please note that you have to close ALL tags.Please use&lt;br /&gt;
the preview function to make sure that your message is shown as you want it to be.&lt;br /&gt;
View Style Code and Smilies Guide</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409308/409308/deleted/</guid>
      <pubDate>Sat, 14 Nov 2009 22:50:14 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>need help for string</title>
      <link>http://www.programmersheaven.com/mb/java/409266/409266/need-help-for-string/</link>
      <description>I need to write a program that first asks the user to enter a word (any word), read as a String. The program should keep asking for a word until the user enters -1 (also read as a String).&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
Please enter a keyword (enter -1 to exit): hello&lt;br /&gt;
Please enter a keyword (enter -1 to exit): HELLO&lt;br /&gt;
Please enter a keyword (enter -1 to exit): goodbye&lt;br /&gt;
Please enter a keyword (enter -1 to exit): -1&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409266/409266/need-help-for-string/</guid>
      <pubDate>Fri, 13 Nov 2009 20:15:40 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>need help for string</title>
      <link>http://www.programmersheaven.com/mb/java/409265/409265/need-help-for-string/</link>
      <description>I need to write a program that first asks the user to enter a word (any word), read as a String. The program should keep asking for a word until the user enters -1 (also read as a String).&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
Please enter a keyword (enter -1 to exit): hello&lt;br /&gt;
Please enter a keyword (enter -1 to exit): HELLO&lt;br /&gt;
Please enter a keyword (enter -1 to exit): goodbye&lt;br /&gt;
Please enter a keyword (enter -1 to exit): -1&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409265/409265/need-help-for-string/</guid>
      <pubDate>Fri, 13 Nov 2009 20:14:07 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Analyse the error of database connection factory in report development</title>
      <link>http://www.programmersheaven.com/mb/java/409263/409263/analyse-the-error-of-database-connection-factory-in-report-development/</link>
      <description>Problem&lt;br /&gt;
For the users of web report tool, when developing web report, they need to configure dataset at first. When data source is complicated, they often want do some special handling to dataset. With the dataset factory listener class of RAQ Report, they can realize this idea.&lt;br /&gt;
&lt;br /&gt;
However, users may meet a few problems in the use of dataset factory listener class. Next, we will introduce the common problems to help users to develop web report correctly with RAQ Report.&lt;br /&gt;
&lt;br /&gt;
Error information&lt;br /&gt;
Error code 500 Message: : Failed to generate dataset factory: com.runqian.report4.dataset.SQLDataSetFactory Error source: : In dataset ds1, datasource report/core_epm is setted falsely or not running, please check data source: Abnormity: : Failed to generate dataset factory: com.runqian.report4.dataset.SQLDataSetFactory Error source: : In dataset ds1, datasource report/core_epm is setted falsely or not running, please check data source: at com.runqian.report4.model.CalcReport.calcDataSet(U
nknown Source:317) at com.runqian.report4.usermodel.Engine.calc(Unknown Source:96) at ep.verify.expression.VerifyExpression.reportExpres
sionCalc(VerifyExpression.java:57) at ep.commons.init.InitShowReportParams.verifyReport(
InitShowReportParams.java:63) at ep.commons.init.InitShowReportParams.(InitShowRepo
rtParams.java:43) at org.apache.jsp.reportJsp.showReport_jsp._jspServic
e(showReport_jsp.java:68) at org.apache.jasper.runtime.HttpJspBase.service(Http
JspBase.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet
.java:856)&lt;br /&gt;
&lt;br /&gt;
Possible Reasons&lt;br /&gt;
1. Check the contxet of public void beforeCreated method which is setted to the IDataSetFactoryListener interface. If there is only connection in it, you’d better to set dataset factory. Then, if the connection in context is closed, data can be got from dataset factory.&lt;br /&gt;
&lt;br /&gt;
2. Print connection. If it isn’t empty, the reason may be that datasource is configured repeatedly. If data source information is configured in reportConfig.xml before, users are not allowed to configure it in custom codes again. Or else, it will report error. To solve the problem, users only need to delete those configuration codes.&lt;br /&gt;
&lt;br /&gt;
This post is from freezea's blog. You are welcomed cc it anywhere, and please indicate the source.&lt;br /&gt;
&lt;br /&gt;
If you would like to read more articles about reporting tool, you are also welcome to refer to my blog.&lt;br /&gt;
&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409263/409263/analyse-the-error-of-database-connection-factory-in-report-development/</guid>
      <pubDate>Fri, 13 Nov 2009 17:30:44 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Learning JAVA</title>
      <link>http://www.programmersheaven.com/mb/java/409257/409257/learning-java/</link>
      <description>Learning JAVA is a very hard thing, but it is a valuable discipline, we must strive to learn it.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409257/409257/learning-java/</guid>
      <pubDate>Fri, 13 Nov 2009 12:08:18 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Learning JAVA</title>
      <link>http://www.programmersheaven.com/mb/java/409255/409255/learning-java/</link>
      <description>Learning JAVA is a very hard thing, but it is a valuable discipline, we must strive to learn it.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409255/409255/learning-java/</guid>
      <pubDate>Fri, 13 Nov 2009 12:06:31 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Window Mobile 5.0</title>
      <link>http://www.programmersheaven.com/mb/java/409236/409236/window-mobile-50/</link>
      <description>trying to get some simple things working under a WM 5.0 environment, but all my attempt are null.&lt;br /&gt;
&lt;br /&gt;
How can I display an image!!  so simple its crazy how it doesn't show.  I tried jpg/gif/png/bmp formats, changing size from 200px to 100px, and I tried placing image on another JPanel before placing on my main JPanel.  Nothing I've done worked.  &lt;br /&gt;
&lt;br /&gt;
Any apparent ideas?&lt;br /&gt;
&lt;br /&gt;
-=The Best Has Yet To Come=-</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409236/409236/window-mobile-50/</guid>
      <pubDate>Fri, 13 Nov 2009 09:25:15 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: help pliz</title>
      <link>http://www.programmersheaven.com/mb/java/409210/409211/re-help-pliz/#409211</link>
      <description>want to convert blu rays to some common videos like AVI, ASF, MPEG, MP4, WMV, MKV, MOV, FLV, SWF, RM, 3GP, AAC, AC3, MP3, etc, just try &lt;a href="http://www.bluerayconverter.net/"&gt;blu ray converter&lt;/a&gt; right now!!!&lt;br /&gt;
also you can view the following software i recommended as belows:&lt;br /&gt;
&lt;a href="#"&gt;mts converter mac &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;a href="#"&gt;hd video converter&lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409210/409211/re-help-pliz/#409211</guid>
      <pubDate>Fri, 13 Nov 2009 02:56:46 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>help pliz</title>
      <link>http://www.programmersheaven.com/mb/java/409210/409210/help-pliz/</link>
      <description>how can develo an application that allows students to open up an account?the account must have university name,telephone number,course name and faculty name.pliz hel me out.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409210/409210/help-pliz/</guid>
      <pubDate>Fri, 13 Nov 2009 02:35:13 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Eclipse @Override problem</title>
      <link>http://www.programmersheaven.com/mb/java/401316/409180/re-eclipse-override-problem/#409180</link>
      <description>any luck getting an answer...I'm having the same problem.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/401316/409180/re-eclipse-override-problem/#409180</guid>
      <pubDate>Thu, 12 Nov 2009 13:38:56 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: help - string</title>
      <link>http://www.programmersheaven.com/mb/java/409119/409165/re-help---string/#409165</link>
      <description>You can't compare diferent types, like a string and int.&lt;br /&gt;
You sould convert the int value -1 to a string value "-1", and&lt;br /&gt;
use the comparable string method, never use the logic operators:&lt;br /&gt;
==,&lt;br /&gt;
!=&lt;br /&gt;
Use instead:&lt;br /&gt;
&amp;lt;String&amp;gt;.compareTo(&amp;lt;String&amp;gt;);&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409119/409165/re-help---string/#409165</guid>
      <pubDate>Thu, 12 Nov 2009 07:14:36 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>help - string</title>
      <link>http://www.programmersheaven.com/mb/java/409119/409119/help---string/</link>
      <description>I am trying to write a program that first asks the user to enter a word (any word), read as a String. The program should keep asking for a word until the user enters -1 (also read as a String).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This is my code, but it says "incomparable types: java.lang.String and int" &lt;br /&gt;
&lt;br /&gt;
System.out.print("Please enter a keyword (enter -1 to exit): ");&lt;br /&gt;
for (String word = input.nextLine(); word != -1; word = input.nextLine()){&lt;br /&gt;
&lt;br /&gt;
System.out.print("Please enter a keyword (enter -1 to exit): ");&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/409119/409119/help---string/</guid>
      <pubDate>Wed, 11 Nov 2009 20:22:30 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Some help required, this isn't homework</title>
      <link>http://www.programmersheaven.com/mb/java/408689/409096/re-some-help-required-this-isnt-homework/#409096</link>
      <description>thanks&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://www.skyrocketrevenues.com"&gt;search engine marketing service&lt;/a&gt;&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/408689/409096/re-some-help-required-this-isnt-homework/#409096</guid>
      <pubDate>Wed, 11 Nov 2009 07:46:52 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Retry JButton blocks repaint()</title>
      <link>http://www.programmersheaven.com/mb/java/408296/409027/re-retry-jbutton-blocks-repaint/#409027</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I think problem may be related to threading.......&lt;br /&gt;
&lt;br /&gt;
I found few cool examples at &lt;a href="http://www.sourcecode3s.com/Cate_list.aspx?catid=6"&gt;http://www.sourcecode3s.com/Cate_list.aspx?catid=6&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
hope may help you...&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/408296/409027/re-retry-jbutton-blocks-repaint/#409027</guid>
      <pubDate>Tue, 10 Nov 2009 08:13:16 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Problem with JFrame Painting</title>
      <link>http://www.programmersheaven.com/mb/java/408432/409026/re-problem-with-jframe-painting/#409026</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I found few cool examples at &lt;a href="http://www.sourcecode3s.com/Cate_list.aspx?catid=6"&gt;http://www.sourcecode3s.com/Cate_list.aspx?catid=6&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
hope will help you...&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/408432/409026/re-problem-with-jframe-painting/#409026</guid>
      <pubDate>Tue, 10 Nov 2009 08:11:42 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Re: Please Help me on Linked List- Urgent</title>
      <link>http://www.programmersheaven.com/mb/java/408722/409025/re-please-help-me-on-linked-list--urgent/#409025</link>
      <description>Hi,&lt;br /&gt;
&lt;br /&gt;
I found few cool examples at &lt;a href="http://www.sourcecode3s.com/Cate_list.aspx?catid=6"&gt;http://www.sourcecode3s.com/Cate_list.aspx?catid=6&lt;/a&gt; &lt;br /&gt;
&lt;br /&gt;
hope will help you...&lt;br /&gt;
&lt;br /&gt;
Thanks.&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/408722/409025/re-please-help-me-on-linked-list--urgent/#409025</guid>
      <pubDate>Tue, 10 Nov 2009 08:10:32 -0700</pubDate>
      <category>Java</category>
    </item>
    <item>
      <title>Scanner class = scn.next()</title>
      <link>http://www.programmersheaven.com/mb/java/408993/408993/scanner-class--scnnext/</link>
      <description>Hi there, &lt;br /&gt;
I am supposed to do a randomization of questions and the user answer them. &lt;br /&gt;
&lt;br /&gt;
An example would be what does IE stands for:&lt;br /&gt;
the user must enters Internet Explorer. and it's correct. &lt;br /&gt;
&lt;br /&gt;
However, in my programme, whenever the user enters "Internet Explorer" or any other string that has space, my program could not detect the correct answer. and it will loop 2 times depending on the String after the space the user entered. Example, Internet Explorer will loop 2 questions out. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here is my source codes:&lt;br /&gt;
 &lt;pre class="sourcecode"&gt;System.out.print("Ans: ");
     answer = scn.next();
  for (int num = 0; num &amp;lt; array.length; num++)
  {
  if (answer.toLowerCase().equals(array[num])
  {	
       accPoints += 20;
   System.out.println("Correct! You have " + accPoints + " points now!");
                     
 }
else 
 {
correct = false;
if (num ==0)
System.out.println("Incorrect! The answer is [" + array[num])+ "]");
}
}
              
&lt;/pre&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/java/408993/408993/scanner-class--scnnext/</guid>
      <pubDate>Mon, 09 Nov 2009 20:22:24 -0700</pubDate>
      <category>Java</category>
    </item>
  </channel>
</rss>