import
java.lang.*;
public
class
Geeks {
public
static
void
main(String[] args)
{
double
start =
23
.62d, direction =
0
.0d;
double
result = StrictMath.nextAfter(start, direction);
System.out.println(
"The NextAfter is = "
+ result);
result = StrictMath.nextAfter(start,
9
.2d);
System.out.println(
"The NextAfter is = "
+ result);
result = StrictMath.nextAfter(direction,
7
.2d);
System.out.println(
"The NextAfter is ="
+ result);
result = StrictMath.nextAfter(direction,
0
.0d);
System.out.println(
"The NextAfter is ="
+ result);
}
}