#Syntax error on token class, * expected

11 messages · Page 1 of 1 (latest)

lapis wasp
#

So I have a homework where I need to pull some data from csv. The way to pull is given already and it's in "Students.java" file. I compiled it to a class with javac *.java
Now I have to access this "Students.class" from "Main.Java" but when I try to import it this is the problem that I'm getting.

empty finchBOT
#

This post has been reserved for your question.

Hey @lapis wasp! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

hollow valley
#

You don't need to use .class on an import.

#

import Student; should work fine

lapis wasp
pulsar mason
#

is Student in the same folder

lapis wasp
#

yes

pulsar mason
#

you don't need the import then

lapis wasp
#

thank you

empty finchBOT
# lapis wasp thank you

If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.