Create a file Customer.java (use right click option in the environment to create new file)
Create public class Customer with below attributes
id int
name String
email String
Write constructor to initialize the attributes.
Try to compile the class with command:
javac Customer.java
Create file Solution.java
Create public class Solution in that file.
Write a method checkEmail which takes two Customer objects and email domain name (e.g. "gmail", "yahoo" etc) as input parameters.
This method will return true if email for both customer objects refers the domain shared as third parameter. Else it will return false.
Declare main method in Solution class. Create two Customer objects e1 and e2.
Answers
Answered by
0
Answer:
This is not a valid question....
Answered by
2
Explanation:
The mkdir() method is a part of File class. The mkdir() function is used to create a new directory denoted by the abstract pathname. The function returns true if directory is created else returns false. The function returns true if directory is created else returns false.
Similar questions