Good day!
I would like to ask how to enumerate the contents of certain vector and print it in a certain file because this code is having problems:
Enumeration e = v.elements();
...
while(enu.hasMoreElements()){
out.write(enu.nextElement());
}
Error:
...: cannot find symbol
symbol: method write(java.lang.Object)
location: class java.io.BufferedWriter
It seems that out.write seems to be invalid or so because when I changed "out.write" into "System.out.println" to check if upper/lower cases of the functions are correct, the compiler did not give any error.
Thanks for the help. :)