We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eef6615 commit e7d5324Copy full SHA for e7d5324
1 file changed
TestString.java
@@ -107,6 +107,11 @@ private static void testSubstring() {
107
System.out.println("5, : " + s.substring(5));
108
}
109
110
+ private static void testParsing() {
111
+ String s = "104"; //Throw error if there are blanks in the string
112
+ System.out.println(Integer.parseInt(s));
113
+ }
114
+
115
public static void main(String[] args) {
116
stringDemo();
117
System.out.println("");
@@ -115,5 +120,6 @@ public static void main(String[] args) {
120
testOtherMethods();
121
testTrimming();
122
testSubstring();
123
+ testParsing();
118
124
119
125
0 commit comments