This is very strange. I decided to create a new project on my desktop mac. Then I copied it to my laptop Idea folder. Then I opened and ran it. the program ran and the console opened and I saw the results. There was something wrong with the the original sample file created by intellij - so the it was working all along, but the file sample project was not