help with linked lists or powershell | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

help with linked lists or powershell

Im doing some homework.. and im reading in a file through the cmdline and saving each word as a node in a linked list. We have to run the program as a jar file in powershell. I know nothing about powershell and somehow the prof excpects us to figure it out, fair enough. I keep gettin a nullpointer exception but i dont know how to de bug in powershell?? Ive looked online but the things i have tried have not helped at all. So anyone able to give me a hand?

16th Feb 2018, 6:44 PM
Emily Pauls
Emily Pauls - avatar
1 Resposta
+ 1
Iā€™m writing in bluej but Iā€™ve never set it up in bluej so that you just send it a file without doing the hasNext and read for each line etc like it is taking in the command line so I donā€™t know how to run the program in bluej without doing a file input stream? Iā€™ll post some code https://code.sololearn.com/cS82mnANo00f/#java here's a link to the code. I posted all of it cause I don't really know what a person would need to see. There are a few things that don't work but right now I just want to get passed the NullPointerException lol.
16th Feb 2018, 9:11 PM
Emily Pauls
Emily Pauls - avatar