Ads

(adsbygoogle = window.adsbygoogle || []).push({});

Ads

(adsbygoogle = window.adsbygoogle || []).push({});

View Answers

August 11, 2008 at 10:42 AM

Hi friend,

In Math class having two function max and min in java.

public class MathMaxMin {

public static void main(String args[]) {

// Method for the max number among the pair of numbers

System.out.println("Method results");

System.out.println("Math.max(5,8) " + Math.max(5,8));

byte bt = 8;

double dt = 10.0;

//Method for the max value between the values of bt

// dt variables

System.out.println("Math.max(bt, dt) "+Math.max(bt, dt));

// Method for the min number among the pair of number

System.out.println("Method results");

System.out.println("Math.min(5,8) " + Math.min(5,8));

byte btm = 7;

double dtm = 10.0;

//Method for the max value between the values of btm

// dtm variables

System.out.println("Math.min(btm, dtm) " +Math.min(btm, dtm));

}

}

For read more information to visit the link........

http://www.roseindia.net/java/beginners/MathClass.shtml

Thanks

In Math class having two function max and min in java.

public class MathMaxMin {

public static void main(String args[]) {

// Method for the max number among the pair of numbers

System.out.println("Method results");

System.out.println("Math.max(5,8) " + Math.max(5,8));

byte bt = 8;

double dt = 10.0;

//Method for the max value between the values of bt

// dt variables

System.out.println("Math.max(bt, dt) "+Math.max(bt, dt));

// Method for the min number among the pair of number

System.out.println("Method results");

System.out.println("Math.min(5,8) " + Math.min(5,8));

byte btm = 7;

double dtm = 10.0;

//Method for the max value between the values of btm

// dtm variables

System.out.println("Math.min(btm, dtm) " +Math.min(btm, dtm));

}

}

For read more information to visit the link........

http://www.roseindia.net/java/beginners/MathClass.shtml

Thanks

August 11, 2008 at 10:46 AM

Hi friend,

In Math class having two function max and min in java.

public class MathMaxMin {

public static void main(String args[]) {

// Method for the maximum number among the pair of numbers

System.out.println("Method results");

System.out.println("Math.max(5,8) " + Math.max(5,8));

byte bt = 8;

double dt = 10.0;

//Method for the max value between the values of bt

// dt variables

System.out.println("Math.max(bt, dt) "+Math.max(bt, dt));

// Method for the minimum number among the pair of number

System.out.println("Method results");

System.out.println("Math.min(5,8) " + Math.min(5,8));

byte btm = 7;

double dtm = 10.0;

//Method for the minimum value between the values of btm

// dtm variables

System.out.println("Math.min(btm, dtm) " +Math.min(btm, dtm));

}

}

For read more information to visit the link........

http://www.roseindia.net/java/beginners/MathClass.shtml

Thanks

In Math class having two function max and min in java.

public class MathMaxMin {

public static void main(String args[]) {

// Method for the maximum number among the pair of numbers

System.out.println("Method results");

System.out.println("Math.max(5,8) " + Math.max(5,8));

byte bt = 8;

double dt = 10.0;

//Method for the max value between the values of bt

// dt variables

System.out.println("Math.max(bt, dt) "+Math.max(bt, dt));

// Method for the minimum number among the pair of number

System.out.println("Method results");

System.out.println("Math.min(5,8) " + Math.min(5,8));

byte btm = 7;

double dtm = 10.0;

//Method for the minimum value between the values of btm

// dtm variables

System.out.println("Math.min(btm, dtm) " +Math.min(btm, dtm));

}

}

For read more information to visit the link........

http://www.roseindia.net/java/beginners/MathClass.shtml

Thanks

Ads

(adsbygoogle = window.adsbygoogle || []).push({});
// to set WMD's options programatically, define a "wmd_options" object with whatever settings
// you want to override. Here are the defaults:
wmd_options = {
// format sent to the server. Use "Markdown" to return the markdown source.
///output: "HTML",
output: "Markdown",
// line wrapping length for lists, blockquotes, etc.
lineLength: 40,
// toolbar buttons. Undo and redo get appended automatically.
buttons: "bold italic | link blockquote code image | ol ul heading hr",
// option to automatically add WMD to the first textarea found. See apiExample.html for usage.
autostart: true
};

Related Tutorials/Questions & Answers: