document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. import java.io.*;
  2.  
  3. class Write
  4. {
  5.   public static void main(String[] args) throws Exception
  6.                      {
  7.   File file = new File("temp.test");
  8.   FileOutputStream stream = new FileOutputStream(file);
  9.  
  10.   // write integers here. . .
  11.                     }
  12. }
  13.  
  14. Choices:
  15. a. DataOutputStream filter = new DataOutputStream(stream);
  16. for (int i = 0; i < 10; i++)
  17. {
  18.      filter.writeInt(i);
  19. }
  20.  
  21. b. for (int i = 0; i < 10; i++)
  22. {
  23.        file.writeInt(i);
  24. }
  25.  
  26. c. for (int i = 0; i < 10; i++)
  27. {
  28.       stream.writeInt(i);
  29. }
  30.  
  31. d. DataOutputStream filter = new DataOutputStream(stream);
  32. for (int i = 0; i < 10; i++)
  33. {
  34. filter.write(i);
  35. }
  36.  
  37. e. for (int i = 0; i < 10; i++)
  38. {
  39.       stream.write(i);
  40. }
');