Just copy-pasted your code in a public class. I had no package. Did you try the cmd as Norm suggested? I did it and it worked too.
Type: Posts; User: andreas90
Just copy-pasted your code in a public class. I had no package. Did you try the cmd as Norm suggested? I did it and it worked too.
I run it on NetBeans. Here is the output.
run:
one (1) - 0
two (2) - 0
three (3) - 0
Total: 0
Name ID Number Sold
________________________________
Hello tai8!
I just run your code and it printed what it was supposed to.