We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa1f1be commit 9abbbabCopy full SHA for 9abbbab
Methods/NullErrorSolution.java
@@ -0,0 +1,18 @@
1
+class Test {
2
+ void nullError(String name) {
3
+ System.out.println("name:" + name);
4
+ }
5
+
6
+ void nullError(Integer i) {
7
+ System.out.println("integer:" + i);
8
9
+}
10
11
+class NullErrorSolution {
12
+ public static void main(String[] args) {
13
+ Test obj = new Test();
14
+ String arg=null;
15
+ obj.nullError(arg);
16
17
18
0 commit comments