Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

User.java class User{ private String first_name; private String last_name; private String dob; //date of birth private String pob; //place of birth public String getFirst_name() {

User.java class User{ private String first_name; private String last_name; private String dob; //date of birth private String pob; //place of birth public String getFirst_name() { return first_name; } public void setFirst_name(String first_name) { this.first_name = first_name; } public String getLast_name() { return last_name; } public void setLast_name(String last_name) { this.last_name = last_name; } public String getDob() { return dob; } public void setDob(String dob) { this.dob = dob; } public String getPob() { return pob; } public void setPob(String pob) { this.pob = pob; } // overriding this method to display user details public String toString() { return "First Name: "+this.first_name+" Last Name: "+this.last_name+ " Birthday : "+this.dob+" Born in : "+this.pob; } } I WANT TO CORRECT THIS CODE IN JAVA. WHEN I TRIED TO RUN IN MY TERMINAL HAVE THIS ERROR: Error: Main method not found in class User, please define the main method as: public static void main(String[] args) or a JavaFX application class must extend javafx.application.Application

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_2

Step: 3

blur-text-image_3

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

Marketing Database Analytics

Authors: Andrew D. Banasiewicz

1st Edition

0415657881, 978-0415657884

More Books

Students also viewed these Databases questions

Question

D How will your group react to this revelation?

Answered: 1 week ago

Question

Why is effective communication important

Answered: 1 week ago