Lab 4.1: Input Using a Scanner
Let’s first write aprogram so that it uses basic (Scanner-based) input, and basicoutput.
Create a newEclipse project named CPS_150_Lab4_1
Add a Main class(with a mainmethod).
Type (orcopy/paste) in the highlighted code and then complete and run the followingprogram:
import java.util.Scanner;
/*
Complete the following program that prompts theuser to enter two integers,
then outputs which integer is smaller, and whichinteger is larger.
*/
public class Main {
public static void main(String[] args) {
Scannerkbd = new Scanner( System.in );
// TODO: declare input1 and input2as integers, each initialized to 0
// TODO: declare
PayPal Gateway not configured
PayPal Gateway not configured