java Print_First_Number_Between_Two

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了java Print_First_Number_Between_Two相关的知识,希望对你有一定的参考价值。

package BASICJAVA;

import java.util.Scanner;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author ABIR
 */
public class Print_First_Number_Between_Two {
    public static void main(String[]args){
        Scanner abir=new Scanner(System.in);
        System.out.println("Enter your first number");
        int number1=abir.nextInt();
        System.out.println("Enter your second number");
        int number2=abir.nextInt();
        if(number1>number2){
            System.out.println("first");
        }
    }
}

以上是关于java Print_First_Number_Between_Two的主要内容,如果未能解决你的问题,请参考以下文章

Java 布尔运算

java [Java] Java常用代码#java

Java - 35 Java 实例

Java While 循环

Java 字符串

Java If ... Else