Why is this code not working.
package com.codegym.task.task04.task0422;
/*
18+
*/
import java.util.Scanner;
public class Solution
{
public static void main(String[] args) throws Exception
{
Scanner s = new Scanner(System.in);
System.out.println("Please enter the name: ");
String name = s.nextLine();
System.out.println("Please enter the age: ");
String age = s.nextLine();
int ag=Integer.parseInt(age);
if (ag < 18)
{
System.out.println("Grow up a little more");
}
else
{
}
}
}