@@ -0,0 +1,863 @@
+import java.util.Scanner;%0Aimport java.io.FileWriter;%0Aimport java.io.PrintWriter;%0A%0Aclass test %7B%0A%09public static void main(String args%5B%5D)%7B%0A%09%0A%09try%7B%0A%09%0A%09String nome, extencao, texto, buffer;%0A%09%0A%09Scanner in = new Scanner(System.in);%0A%09%0A%09System.out.print(%22Insira o nome do arquivo (nome_arquivo): %22);%0A%09nome = in.next();%0A%09%0A%09System.out.print(%22Insira a exten%C3%A7%C3%A3o (txt): %22);%0A%09extencao = in.next();%0A%09%0A%09FileWriter arquivo = new FileWriter(nome+%22.%22+extencao);%0A%09%0A%09System.out.println(%22Arquivo criado com sucesso....; arquivo: %22+nome+%22.%22+extencao);%0A%09%0A%09System.out.print(%22Insira o Texto que ser%C3%A1 escrito no arquivo (Texto com espa%C3%A7o): %22);%0A%09buffer = in.nextLine(); // pega o /n do enter%0A%09texto = in.nextLine();%0A%09%0A%09%0A%09PrintWriter escrever = new PrintWriter (arquivo);%0A%09%0A%09escrever.print(texto);%0A%09%0A%09arquivo.close();%0A%09%0A%09%0A%09%7Dcatch(Exception e)%7BSystem.out.print(%22ERRO: %22+e);%7D%0A%09%0A%09%0A%09%09%09%0A%09%09%0A%09%09%0A%09%7D%0A%7D%0A

Create escreve_arquivo.java