3:44 pm - Wednesday December 11, 2813

Math Example Program for min(int a,int b)

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044
/**
@author:candidjava
@description:This example shows how find the small integer from math method
*/
public class MinInt {
	public static void main(String[] args) {
		int a=89;
		int b=97;
		System.out.println("Large int is: "+Math.min(a, b)); //find which int is small .

	}

}

output:
small int is: 89

BACK

Filed in: Z-A All Java Codes

Comments are closed.