Skip to content

Commit

Permalink
Answer by williamgl (#91)
Browse files Browse the repository at this point in the history
Answer by williamgl (#91)

Co-authored-by: williamgl <ligan@oregonstate.edu>
  • Loading branch information
ByteLegendBot and williamgl committed Nov 23, 2022
2 parents 8cd4357 + 6719bbd commit 4b2a64a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/main/java/com/bytelegend/MaxValues.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,31 +2,31 @@
public class MaxValues {
// byte类型能存储的最大值是?
// The maximum value a byte type can store
public static byte maxByte = ?;
public static byte maxByte = Byte.MAX_VALUE;

// short类型能存储的最大值是?
// The maximum value a short type can store
public static short maxShort = ?;
public static short maxShort = Short.MAX_VALUE;

// int类型能存储的最大值是?
// The maximum value an int type can store
public static int maxInt = ?;
public static int maxInt = Integer.MAX_VALUE;

// long类型能存储的最大值是?
// The maximum value an long type can store
public static long maxLong = ?;
public static long maxLong = Long.MAX_VALUE;

// float类型能存储的最大值是?
// The maximum value an float type can store
public static float maxFloat = ?;
public static float maxFloat = Float.MAX_VALUE;

// double类型能存储的最大值是?
// The maximum value an double type can store
public static double maxDouble = ?;
public static double maxDouble = Double.MAX_VALUE;

// char类型能存储的最大值是?
// The maximum value an char type can store
public static char maxChar = ?;
public static char maxChar = Character.MAX_VALUE;

public static void main(String[] args) {
System.out.println("maxByte=" + maxByte);
Expand Down

0 comments on commit 4b2a64a

Please sign in to comment.