Answered step by step
Verified Expert Solution
Question
1 Approved Answer
intro to java Hi i need help in netbeans application im getting an error for the output Your program must output a greeting that includes
intro to java Hi i need help in netbeans application im getting an error for the output
Your program must output a greeting that includes their name (e.g. Hello Kellyt) and also tell them how old they will be on their next birthday. Please upload a single java file. 2 3 package birthdate: import java.time. import java.util.Scanner; public class BirthDate { public static void main(String[] args) { 5 Scanner sc = new Scanner(System.in); System.out.println("please enter your birth date(yyy-m-dd format. only) String st = sc.nextLine(); } LocalDateDob: Dob LocalDate.parse(st) System.out.println("Hello Kevin"); static int calcAgelLocalDate Dob LocalDate currentbate ="LocalDate.now(); int age = Period between(Dob, currentDate).getYears(); age = age 1 return age; ) 24 25 28 30 31 32 L 33 author Lawyer public class Newclassic Output - Run (mavenproject) COMPILATION ERROR: NewClass1.java: 18,571') expected NewClassi.java: 18,541 not a statement NewClassi.javat 8.671 expected NewClass1.java:8791; expected NewClassi.java: (8,881 unclosed string literal NewClassi.java: (11,211 identifier> expected NewClassi.java: 112, 121cidentifier expected Run mavenproject) (1 more) 23:2 aut conf.. 0 . 277.6/664.0MB C Q- Search (x+1) System.out.println("Hello Kevin"). static int calcAgel LocalDate Dob LocalDate current Date - LocalDate.now(); int age. Period between(Dob, currentoate).getYea age - age+1 return ages author kusawyer. public class Newclassi Output - Run (mavenprojectl) x OMPILATION RROR NewClassi.java8.571 expected Newclassi avat.541 mot Statement Newcas.javart.5711 expected Newcassava , 791 expected Newclassi avas, Bounclosed Stringateral Newclassi. Java: (12,211 identifier expected NewClassi. Jovai (12,121 identifier expecte Run (mavenproject) Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started