IO/Console Output
HI sir,
Use an array of integers with size 10 and print the content of the array using write ( ) method.
Note: Please do not use System.out.println ( ) method.
import java.io.*;
class ConsoleOutput{
public static void main(String[] args) throws IOException
{
int array[]={1,2,3,4,5,6,7,8,9,10};
System.out.write(array);
}
}
ConsoleOutput.java:7:cannot find symbol
symbol : method write(int[])
location:class java.io.Printstream
System.out.write(array);
^
am not getting the output