What causes “‘void’ type not allowed here” error

If a method returns void then there is nothing to print, hence this error message. Since printPoint already prints data to the console, you should just call it directly:

printPoint (blank); 

Leave a Comment