Computer Science, asked by hdhaul, 11 months ago

Write a java program to compare numeric value of two characters and print the character of higher numeric value

Answers

Answered by akifjameel180
1

Answer:

Java double type comparison can be done through the following methods:

static int compare(double d1, double d2) compares the two specified double values.

int compareTo(Double anotherDouble) compares two Double objects numerically.

boolean equals(Object obj) compares this object against the specified object.

Similar questions