Java练习题4_last-1_1043林大锐格平台

import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        int m , n;
        Scanner in = new Scanner(System.in);
        m = in.nextInt();
        n = in.nextInt();
        System.out.println(Min(m,n));
    }
    static int Min(int a,int b){
    	if(a<=b)return a;
    	else return b;
    }
    // Write your own code

}
时间: 2024-10-11 05:08:42

Java练习题4_last-1_1043林大锐格平台的相关文章

Java实验题3_8_林大锐格平台

import java.util.Scanner; class Employee { private String name;// 职员名称 public Employee() { }; public Employee(String s) {// 构造函数,初始化职员名称 this.name = s; } public String GetName() { // 获取职员名称 return name; } } class Manager extends Employee{ String depa

Java实验题3_7_林大锐格平台

import java.util.Scanner; abstract class Vehicle { String wheels; abstract String noOfWheels(String a); void showWheels(){ System.out.println(wheels+" wheel vehicle"); } //write your own codes } class Car extends Vehicle { public String noOfWhee

Java实验题3_3_林大锐格平台

import java.util.Scanner; abstract class Shape{ abstract float GetArea(); abstract float GetPerimeter(); } class Rectangle{ private double x,y; public Rectangle(int i, int j) { x=i; y=j; } public float GetArea(){ return (float)(x*y); } public float G

Java实验题3_4_林大锐格平台

import java.util.Scanner; abstract class Animal { public String name; public int age; public float weight; public void showInfo() { System.out.println("name:" + this.name + " age:" + this.age + " weight:" + this.weight); } pu

Java实验题3_5_林大锐格平台

import java.util.Scanner; //write code here class Dog{ String breed,color;int weight; } class SpottedDog extends Dog{ private String spotColor; SpottedDog(String a,int b,String c,String d){ breed=a;weight=b;color=c;spotColor=d; } void showBreed(){ Sy

Java实验题3_1_林大锐格平台

import java.util.Scanner; interface ShowMessage{ void showTradeMark(); } class TV implements ShowMessage{ String a; TV(String a) { this.a=a; } public void showTradeMark() { System.out.println("I am TV "+a); } } public class Main{ public static v

Java练习题4_last_1042林大锐格平台

import java.util.Scanner; public class Main{ public static void main(String args[]){ int ri , repeat; int n; Scanner in = new Scanner(System.in); repeat = in.nextInt(); for(ri = 1 ; ri <= repeat ; ri++){ n=in.nextInt(); dectobin(n); } } static void d

Java练习题4_3_2407林大锐格平台

import java.util.Scanner; class Rectangular { private static int x, y; private static int countP = 0; public Rectangular(int xx, int yy) { x=xx; y=yy; } public Rectangular(Rectangular p) { x=p.x; y=p.y; } public int getX() { return x; } public int ge

王家林 大数据Spark超经典视频链接全集[转]

压缩过的大数据Spark蘑菇云行动前置课程视频百度云分享链接 链接:http://pan.baidu.com/s/1cFqjQu SCALA专辑 Scala深入浅出经典视频 链接:http://pan.baidu.com/s/1i4Gh3Xb 密码:25jc DT大数据梦工厂大数据spark蘑菇云Scala语言全集(持续更新中) http://www.tudou.com/plcover/rd3LTMjBpZA/ 1 Spark视频王家林第1课:大数据时代的“黄金”语言Scala 2 Spark视