Corrected the file names
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.baeldung.exceptions.nosuchfielderror;
|
||||
|
||||
public class FieldErrorExample {
|
||||
|
||||
public static void main(String... args) {
|
||||
fetchAndPrint();
|
||||
}
|
||||
|
||||
public static String getDependentMessage() {
|
||||
return Dependent.message;
|
||||
}
|
||||
|
||||
public static void fetchAndPrint() {
|
||||
System.out.println(getDependentMessage());
|
||||
}
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
package com.baeldung.exceptions.nosuchfielderror;
|
||||
|
||||
public class NoSuchFieldErrorExample {
|
||||
|
||||
public static String getDependentMessage() {
|
||||
return Dependent.message;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user