Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
image text in transcribed
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 23rd European Conference Adbis 2019 Bled Slovenia September 8 11 2019 Proceedings Lncs 11695

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Aida Kamisalic Latific

1st Edition

3030287297, 978-3030287290

More Books

Students also viewed these Databases questions

Question

4. Label problematic uses of language and their remedies

Answered: 1 week ago