其他分享
首页 > 其他分享> > page55ask1.1.3

page55ask1.1.3

作者:互联网

package com.zzh;

import edu.princeton.cs.algs4.StdIn;
import edu.princeton.cs.algs4.StdOut;

public class Test {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        int a,b,c;
        a=StdIn.readInt();
        b=StdIn.readInt();
        c=StdIn.readInt();
        StdOut.println(judge(a,b,c));
    }
    public static String judge(int a,int b,int c) {
        if (a==b&&b==c) return "equal";
        else return "not equal";
        
    }
}

 

标签:page55ask1.1,int,StdIn,readInt,static,cs,public
来源: https://www.cnblogs.com/zhuzehua/p/10815460.html