[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 5550 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 200 days
Recommended Popular Threads Controvertial Threads
TPS Re-registration
What are your first memories of when Nepal Television Began?
निगुरो थाहा छ ??
ChatSansar.com Naya Nepal Chat
TPS Re-registration case still pending ..
Basnet or Basnyat ??
Sajha has turned into MAGATs nest
NRN card pros and cons?
Do nepalese really need TPS?
कता जादै छ नेपाली समाज ??
Will MAGA really start shooting people?
Democrats are so sure Trump will win
मन भित्र को पत्रै पत्र!
Top 10 Anti-vaxxers Who Got Owned by COVID
I regret not marrying a girl at least for green card. do you think TPS will remain for a long time?
TPS Work Permit/How long your took?
काेराेना सङ्क्रमणबाट बच्न Immunity बढाउन के के खाने ?How to increase immunity against COVID - 19?
Breathe in. Breathe out.
3 most corrupt politicians in the world
Dementia Joe has been selected to become the next President
Nas and The Bokas: Coming to a Night Club near you
Mr. Dipak Gyawali-ji Talk is Cheap. US sends $ 200 million to Nepal every year.
Harvard Nepali Students Association Blame Israel for hamas terrorist attacks
TPS Update : Jajarkot earthquake
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