Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Percobaan;
- import java.io.FileNotFoundException;
- public class Percobaan7 {
- public static void method1() throws FileNotFoundException {
- throw new FileNotFoundException("File Tidak Ada");
- }
- public static void main(String[] args) {
- try {
- method1();
- } catch (FileNotFoundException ex) {
- System.out.println(ex.getMessage());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment