MCPcopy Create free account
hub / github.com/bmartho/GradleCourse / Main

Class Main

Aula 1/02-Dependencies/app/src/main/java/Dependency/Main.java:7–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import java.io.File;
6
7public class Main {
8 public void createFile() {
9 String fileName = "newfile.txt";
10 File file = new File(fileName);
11
12 String content = "text content";
13 try {
14 Files.write(content.getBytes(), file);
15 } catch (IOException exception) {
16 return;
17 }
18 }
19
20 public static void main(String[] args) {
21 new Main().createFile();
22 }
23}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected