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:
<
throw new RuntimeException(msg);
You need the new in there. It's creating an instance and throwing it, not calling a method.
new