#how do i run this code
28 messages · Page 1 of 1 (latest)
Hey, @patent basin!
Please remember to /close this post once your question has been answered!
What does the console say when you run the program?
it does not run
the run buttons disappear
@fervent mango plz help
When you make ArrayLists you have to identify what type of variable they are
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
i fixed that
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
should i put the main class outside of the Gneric class
No
The main is a method btw, not a class
All of your code should be under the Generic class
yh i ment method
Excluding imports ofc
@patent basin
What IDE are you using?
intellij
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
it works now thanks a lot