JAVA PROGRAM TO CHECK OR FIND THE WHETHER THE ENTERED STRINGS ARE EQUAL OR NOT
/* Created by IntelliJ IDEA. * Author: Gyanendra Yadav (Gyanendra011Yadav-coder) * Date: 7/28/2020 * Time: 3:35 PM * File: Lab3Task.java */ //Create a program in Java, to input the coupon code from a client. If the client's coupon code // matches your already agreed upon code, then print a message to the client. package lab3 ; // 1 Import the Scanner class from the java.util package. import java.util.Scanner ; public class Lab3Task { public static final String DISCOUNT_CODE = "CoVid19" ; public static void main (String[] args) { // 2 Create an object of the Scanner class named 'scannerObject'. Scanner scannerobject = new Scanner(System. in ) ; // 3 Input the discount code from the client and store it in a String variable named 'clientInputDiscountCode'. System. out .println( "PLEASE ENTER THE CODE:" ) ; String clientInputDiscountCode = scannerobject.nextLine() ; if (clientIn...