logo

Crowdly

Browser

Add to Chrome

Заповніть пропуск import java.io. *; public class Program { public ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Заповніть пропуск

import java.io. *;

public class Program {

public static void main (String [] args) {

String text = "Hello world!"; // рядок для запису

try (FileOutputStream fos = new FileOutputStream ( "C: /SomeDir/notes.txt"))

{byte [] buffer = text.getBytes ();// новий рядок в байти

fos.write (buffer, 0, buffer.length);}

catch (_____ex) {

System.out.println (ex.getMessage ());}

System.out.println ( "The file has been written");}}

100%
0%
0%
More questions like this

Want instant access to all verified answers on vns.lpnu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome