Initial commit
This commit is contained in:
12
Example_src/Chapter1-10/src/ch02/Testvalue.java
Normal file
12
Example_src/Chapter1-10/src/ch02/Testvalue.java
Normal file
@@ -0,0 +1,12 @@
|
||||
package ch02;
|
||||
|
||||
public class Testvalue {
|
||||
public static void main(String args[]) {
|
||||
long lng = 12345678;
|
||||
int int1 = 100;
|
||||
String str1 = String.valueOf(lng);
|
||||
String str2 = Integer.toString(int1, 16).toUpperCase();
|
||||
System.out.println(str1);
|
||||
System.out.println(str2);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user