#how do i run this code

28 messages · Page 1 of 1 (latest)

past novaBOT
#

Hey, @patent basin!
Please remember to /close this post once your question has been answered!

fervent mango
#

What does the console say when you run the program?

patent basin
#

the run buttons disappear

#

@fervent mango plz help

fervent mango
#

So like 33 you initiated it correctly with ArrayList<String> but didn't do it to the rest of the arraylists

#

And remember, these are primitive data types that you need to identify

patent basin
#

i fixed that

fervent mango
#

Okay, so what else are you struggling with?

#

When I fixed that with the code you sent me, the only line I'm getting an error on is line 38

patent basin
#

should i put the main class outside of the Gneric class

fervent mango
#

No

#

The main is a method btw, not a class

#

All of your code should be under the Generic class

patent basin
#

yh i ment method

fervent mango
#

Excluding imports ofc

fervent mango
patent basin
fervent mango
#

What IDE are you using?

patent basin
#

intellij

fervent mango
#

So intellij is not highlighting any issues? It's just saying the code is not runnable?

#

Once I got the primitives inserted, the only error I'm getting on my end (I'm using eclipse) is that the program doesn't know what "Week9Program" is and neither do I - you never established it anywhere in the code, you just threw it into the 2D array

patent basin
#

it works now thanks a lot

fervent mango
#

Ofc ❤️

#

Feel free to close this post once you're done

past novaBOT
# past nova

Before your post will be closed, would you like to express your gratitude to any of the people who helped you? When you're done, click I'm done here. Close this post!.