The Artima Developer Community
Sponsored Link

Java Answers Forum
help please! coding problem

1 reply on 1 page. Most recent reply: Aug 14, 2003 7:53 PM by Matt Pociask

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Susan lewis

Posts: 2
Nickname: susanna35
Registered: Aug, 2003

help please! coding problem Posted: Aug 14, 2003 7:17 PM
Reply to this message Reply
Advertisement
I have created a method which i am trying to call in my main program with this line
final String tAnsweradd = Gettheiranswer (student);
but when i try to compile my program i get this error

Studentclient.java:77: cannot resolve symbol
symbol : variable student
location: class Studentclient
final String tAnsweradd = Gettheiranswer (student);
Does this mean i will have to use files etc!?
Cos i was hoping not to use files
your help would be appreciated.
Thanks


Matt Pociask

Posts: 9
Nickname: mpociask
Registered: Aug, 2003

Re: help please! coding problem Posted: Aug 14, 2003 7:53 PM
Reply to this message Reply
In java, you must declare all of your variables before using them. The compiler is telling you that you didn't define 'students'.

Flat View: This topic has 1 reply on 1 page
Topic: Is it possible to get the reference of one object from its element? Previous Topic   Next Topic Topic: Dealing with Float

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use