[Show all top banners]

fuckeetow
Replies to this thread:

More by fuckeetow
What people are reading
Subscribers
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 problem in java coding
[VIEWED 6491 TIMES]
SAVE! for ease of future access.
Posted on 10-15-11 12:05 PM     [Snapshot: 50]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

The error message that you receive when you program fails.

 
Posted on 10-15-11 12:16 PM     [Snapshot: 62]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Are you talking about this?
Exception in thread "main" java.lang.Error: Unresolved compilation problems: 

Team cannot be resolved to a type

Team cannot be resolved to a type

Input3 cannot be resolved to a type

Input3 cannot be resolved to a type

Input3 cannot be resolved to a variable

Team cannot be resolved to a type

Team cannot be resolved to a type

Player cannot be resolved to a type

Player cannot be resolved to a type

Input3 cannot be resolved to a variable

Player cannot be resolved to a type

Player cannot be resolved to a type

 

at PlayerTeamsTest.main(PlayerTeamsTest.java:6)


 
Posted on 10-15-11 3:22 PM     [Snapshot: 95]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 I dont see a constructor for class Player.
 
Posted on 10-15-11 3:26 PM     [Snapshot: 94]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 Unknown bro, your code runs perfectly. few curly braces were missing in your copied code. 
What IDE are you using? if you are using command line, try compiling all files separately.
Also if you are using eclipse, try refreshing the project as well ( elcipse had bug , dunno if they fixed it).
Andif your classes are in different packages, try importing the packages OR provide the full path of the classes including package like 

com.unknown.packagename.Player p= new com.unknown.packagename.Player();

your code gave me this output: ( copied and pasted)


Team : Team#3
KNICKS
Mike Sweetney
Allan Houston
Howard Eisley
Kurt Thomas
Shanon Anderson
+++++++++++++++++++++++++++++++++=

 
Posted on 10-15-11 3:49 PM     [Snapshot: 104]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 good job man!! your code works....not even a tiny prob....lemme know if  you still have a prob..i can export and send the package to you ! 
 
Posted on 10-15-11 5:22 PM     [Snapshot: 144]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 thanks everyone.. I am using eclipse. as default said, it is still giving the same error. what are yall using for java? i am new to java so I dont know a lot about these things?
mailaba, can you send it to me?



 
Posted on 10-15-11 6:51 PM     [Snapshot: 181]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 sajha is not letting me upload the zipped file...make a fake gmail id and i ll mail it to u!
 
Posted on 10-15-11 7:14 PM     [Snapshot: 217]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 iamunknown54321@gmail.com
 
Posted on 10-15-11 8:07 PM     [Snapshot: 232]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

http://solutionslog.blogspot.com/2009/04/eclipse-cannot-be-resolved-to-type.html

 
Posted on 10-15-11 9:05 PM     [Snapshot: 265]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

 thanks everyone. you guys are awesome. its working now.
 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 7 days
Recommended Popular Threads Controvertial Threads
I hope all the fake Nepali refugee get deported
and it begins - on Day 1 Trump will begin operations to deport millions of undocumented immigrants
Travel Document for TPS (approved)
All the Qatar ailines from Nepal canceled to USA
MAGA मार्का कुरा पढेर दिमाग नखपाउनुस !
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters