Community
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

error: cannot find symbol

 
Post new topic   Reply to topic    Community Forum Index -> Java
View previous topic :: View next topic  
Author Message
jon80



Joined: 28 May 2009
Posts: 24

PostPosted: Fri May 25, 2012 6:19 pm    Post subject: error: cannot find symbol Reply with quote

The following does not compile within TextPad 5.4.2, and, the support team commonly tells me that they do not support these issues, so I write them here. I cannot force them to understand a bug if they do not want to listen.

It works within Eclipse.

Code:

Dog.java
package one;
class Dog
{
   public Dog() { count++;}
   public short getNumberOfDogs() {return this.count;}
   public static short count;

   public static void main (String[] args) {}
}

TestOne.java
package one;
public class TestOne
{
   public static void main (String[] args)
   {
      Dog[] d = new Dog[5];
      for (int i = 0; i < 5; i++)
      {
         d[i] = new Dog();
      }
   }
}

_________________
Jon
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Community Forum Index -> Java All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB