What is not correct?
package com.codegym.task.task09.task0912;
/*
Exception when working with numbers
*/
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
try {
int num = Integer.parseInt("XYZ");
System.out.println(num);
}
catch (NumberFormatException e) {
System.out.println("Number format exception");
}
//write your code here
}
}