I get this run tme error when I try to run this code,it compiles successfully.But when I say groovy Arr.groovy,it gives me this
on command line:
caught: java.lang.NullPointerException at Arr.main,
I want to read from an input stream into an char array using read(char[ ] array) method of reder class,but it gives me this runtime error.I'm sure the file does exists,read( ) method works fine but I can't read into an char array.
The code of my file is :
public static void main(args)