scn is showing a resource leak due to which the code is not runnimg
What is scn and what is the error?
add these 2
import java.util.*;
public class Main{
also you can add scn.close() at the end of program to remove the warning
scn is showing a resource leak due to which the code is not runnimg
add these 2
import java.util.*;
public class Main{
also you can add scn.close() at the end of program to remove the warning