I\'m trying to throw an exception in my code like this:
throw RuntimeException(msg);
But when I build in NetBeans I get this error:
<
You need to create the instance of the RuntimeException, using new the same way you would to create an instance of most other classes:
new
throw new RuntimeException(msg);