PushbackReader.java: Merged with Classpath.
* java/io/PushbackReader.java: Merged with Classpath. * java/util/Arrays.java: Updated from Classpath. * scripts/blocks.pl: New file. * java/lang/Character.java (Subset): New class. (UnicodeBlock): New class. * java/lang/Math.java (toDegrees, toRadians): New methods. * java/lang/Float.java: Implement Comparable. (compareTo): New methods. * java/lang/Double.java: Implement Comparable. (compareTo): New methods. From-SVN: r37512
This commit is contained in:
parent
dd3b81b421
commit
98182da528
7 changed files with 1795 additions and 816 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Copyright (C) 1998, 1999 Free Software Foundation
|
||||
/* Copyright (C) 1998, 1999, 2000 Free Software Foundation
|
||||
|
||||
This file is part of libgcj.
|
||||
|
||||
|
@ -110,6 +110,16 @@ public final class Math
|
|||
|
||||
public static native double max (double a, double b);
|
||||
|
||||
public static double toDegrees (double radians)
|
||||
{
|
||||
return radians * 180 / PI;
|
||||
}
|
||||
|
||||
public static double toRadians (double degrees)
|
||||
{
|
||||
return degrees * PI / 180;
|
||||
}
|
||||
|
||||
// Don't allow objects to be made.
|
||||
private Math ()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue