Skip to content

Commit ea58584

Browse files
author
Yalun Qin
committed
Add Integer to String to TestString
1 parent e7d5324 commit ea58584

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

TestString.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ private static void testSubstring() {
110110
private static void testParsing() {
111111
String s = "104"; //Throw error if there are blanks in the string
112112
System.out.println(Integer.parseInt(s));
113+
114+
int i = -67;
115+
s = String.valueOf(i);
116+
System.out.println(s);
113117
}
114118

115119
public static void main(String[] args) {

0 commit comments

Comments
 (0)