I have no idea what validator expects from write(int c). I am sure it is ok. it was checked with various methods of transforming int to character or string , always with negative answer from validator irrespective of print or prinltn usage. please help