#How do I add these methods in my file so I can use them via import or package.Class

1 messages · Page 1 of 1 (latest)

jagged ledgeBOT
#

<@&987246399047479336> please have a look, thanks.

limber igloo
#

This is the mess Ive made so far

desert spear
#

well and what is your question?

paper willow
#

Your package declaration is invalid. Please don't call it .java

desert spear
#

just use these classes now if you want to

paper willow
#

And you can use the import keyword for files.

limber igloo
#

Look so I have some methods about sll and dll nodes from my uni and I want to use them so I can mess arround with the methods to learn them better. The problem that I am facing is that I cant implement those methods or the classes.

#

Have the methods in these files

#

Watched some youtube tutorials about how to do it but its not working for me, clearly I am doing something wrong.

limber igloo
#

Now made a new project, so what do I do?

slow radish
#

drag the files into your project, under the src folder

limber igloo
#

The file does not have error, only when I try to implement it

slow radish
#

not sure, seems like your project may not be set up properly with the JDK

paper willow
#

Create a new project from scratch, select maven, select the proper JDK version and enter the project name you want.
Then add those files in src/main/java (and whatever package structure you set up).

limber igloo
#

@desert spear I need a hand sorry for tag