| 5 | import java.io.File; |
| 6 | |
| 7 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected