Jump to content
  • 0
Sign in to follow this  
Simplicity35

An error i can not fix.

Question

client.java:88: error: cannot find symbol
public void rspsdata(Client c, String username){
^
symbol: class Client
location: class client
Note: client.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
Press any key to continue . . .

What do i need to add or remove? i know it says what it is and the location but i have tried everything.

Can anyone help me please?
Skype: jehe35
Team viewer is an option.

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0
The answer is very straight forward. The error:
[code]
cannot find symbol
[/code]

Normally resolves around a missing import. In this instance, the compiler is telling you that it cannot find the symbol "class Client". Due to the file you are editing being "client.java". I would recommend changing:
[code]
public void rspsdata(Client c, String username) {
[/code]

to:
[code]
public void rspsdata(client c, String username) {
[/code]

Now please know that naming a file in lowercase is poor naming conventions. This is not your fault, as people with little java knowledge named these files.

Share this post


Link to post
Share on other sites
  • 0
Thank you! I do have one more error and i have Messaged you for further information.

Share this post


Link to post
Share on other sites
  • 0
Hey I'm not the best coder or anything but a quick advice would be make sure you go over your code every time you make a change because Java coding can be very annoying with Capitals.

Share this post


Link to post
Share on other sites
  • 0
OFFTOPIC:
Bloody hate Capitals, makes about 90% of clients not work on Linux (which I run)

ONTOPIC:
Has the other error been resolved?

Share this post


Link to post
Share on other sites
Sign in to follow this  

×