Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

I get the following error when I try to read from an excel sheet. run: C:\Users\keife\Desktop\Project1WeightSheet.xlsx null null Exception in thread “main” java.lang.NullPointerException at Project1.findAverage(Project1.java:86) at Project1.main(Project1.java:52)

I get the following error when I try to read from an excel sheet.

run:

C:\Users\keife\Desktop\Project1WeightSheet.xlsx

null

null

Exception in thread “main” java.lang.NullPointerException

at Project1.findAverage(Project1.java:86)

at Project1.main(Project1.java:52)

C:\Users\keife\AppData\Local\NetBeans\Cache\11.3\executor-snippets\run.xml:111: The following error occurred while executing this line:

C:\Users\keife\AppData\Local\NetBeans\Cache\11.3\executor-snippets\run.xml:68: Java returned: 1

BUILD FAILED (total time: 13 seconds)

I get the following error when I try to read from a txt file

Exception in thread “main” java.lang.NumberFormatException: For input string: “6 7”

at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)

at java.base/java.lang.Integer.parseInt(Integer.java:652)

at java.base/java.lang.Integer.parseInt(Integer.java:770)

at Project1.main(Project1.java:41)

C:\Users\keife\AppData\Local\NetBeans\Cache\11.3\executor-snippets\run.xml:111: The following error occurred while executing this line:

C:\Users\keife\AppData\Local\NetBeans\Cache\11.3\executor-snippets\run.xml:68: Java returned: 1

BUILD FAILED (total time: 11 seconds)

How should I format my file to let Java read it appropriately? It is based on Project1.java here on course hero

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"