what does this error message mean ? Project01.java X Taib integer.cl 1 import javax.swing.JOptionPane; // for input
Fantastic news! We've Found the answer you've been seeking!
Question:
what does this error message mean ?
Transcribed Image Text:
Project01.java X Taib integer.cl 1 import javax.swing.JOptionPane; // for input and output dialogue 3 public class Project 1 4 { 5 6e 7 7890123 11 12 14 15 16 17 18 19 ធនជននិងងខភ៩៣៩០០ 20 21 22 23 24 25 26 27 28 29 30 www. 31 32 33 34 35 36 37 20 public static void main(String[] args) { // define variables String firstName; String lastName; int p1, p2, p3, p4, p5, p6, p7, p8; int hwl, hw2, hw3; int test1, test2, test3, test4; int attendance; double percent Projects, percent Tests, percentAttendance, percentClass; // get input from user firstName= JOption Pane.showInput Dialog(null, "Enter First Name)", "First Name", lastName= JOptionPane.showInputDialog (null, "Enter Last Name)", "Last Name", JOptionPane. QUESTION_MESSAGE); String input = null; p1= Integer.parseInt(input); input JOptionPane.showInput Dialog(null, "Enter a Positive Integer Number<=100", "Grade (Project 1)", JOptionPane. QUESTION_MESSAGE); // convert string input to integer p2 = = Integer.parseInt(input); input = JOptionPane.showInput Dialog(null, "Enter a Positive Integer Number<=100", "Grade (Project 2)", 10ntionDane QUESTION MECCACE). Problems @Javadoc Declaration Console X <terminated> ClassPractice [Java Application] /Users/a/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86 Exception in thread "main" java.lang.NumberFormatException: Cannot parse null string at java.base/java.lang. Integer.parseInt(Integer.java:630) at java.base/java.lang. Integer.parseInt(Integer.java:784) at Project01.main (Project01.java:25) Project01.java X Taib integer.cl 1 import javax.swing.JOptionPane; // for input and output dialogue 3 public class Project 1 4 { 5 6e 7 7890123 11 12 14 15 16 17 18 19 ធនជននិងងខភ៩៣៩០០ 20 21 22 23 24 25 26 27 28 29 30 www. 31 32 33 34 35 36 37 20 public static void main(String[] args) { // define variables String firstName; String lastName; int p1, p2, p3, p4, p5, p6, p7, p8; int hwl, hw2, hw3; int test1, test2, test3, test4; int attendance; double percent Projects, percent Tests, percentAttendance, percentClass; // get input from user firstName= JOption Pane.showInput Dialog(null, "Enter First Name)", "First Name", lastName= JOptionPane.showInputDialog (null, "Enter Last Name)", "Last Name", JOptionPane. QUESTION_MESSAGE); String input = null; p1= Integer.parseInt(input); input JOptionPane.showInput Dialog(null, "Enter a Positive Integer Number<=100", "Grade (Project 1)", JOptionPane. QUESTION_MESSAGE); // convert string input to integer p2 = = Integer.parseInt(input); input = JOptionPane.showInput Dialog(null, "Enter a Positive Integer Number<=100", "Grade (Project 2)", 10ntionDane QUESTION MECCACE). Problems @Javadoc Declaration Console X <terminated> ClassPractice [Java Application] /Users/a/.p2/pool/plugins/org.eclipse.justj.openjdk.hotspot.jre.full.macosx.x86 Exception in thread "main" java.lang.NumberFormatException: Cannot parse null string at java.base/java.lang. Integer.parseInt(Integer.java:630) at java.base/java.lang. Integer.parseInt(Integer.java:784) at Project01.main (Project01.java:25)
Expert Answer:
Answer rating: 100% (QA)
The error message indicates a NumberFormatException which occurs when you t... View the full answer
Related Book For
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates
Posted Date:
Students also viewed these programming questions
-
Write a series of single statements. Actually, these statements form the core of an important type of file-processing programnamely, a file-matching program. In commercial data processing, its common...
-
Ayayai Company prepares its statement of cash flows using the direct method for operating activities. For the year ended December 31, 2024, Ayayai Company reports the following: Sales on account...
-
Erin McQueen purchased 50 shares of BMW, a German stock traded on the Frankfurt Exchange, for 64.5 euros () per share exactly 1 year ago when the exchange rate was 0.67 /US$. Today the stock is...
-
Refer to the data listed in Exercise 5. How are the data sorted in the stemplot? Data from Exercise 5 80 94 58 66 56 82 78 86 88 56 36 66 84 76 78 64 66 78 60 64 Required Construct the stemplot.
-
The firm earned $300,000 after taxes in 20X3 and paid out 50 percent of these earnings as cash dividends. The price on the firm's stock on December 30 was $5. SHERILL CORPORATION SHAREHOLDERS' EQUITY...
-
Do the following electron configurations represent a possible state of an element? If so, (i) identify the element and (ii) determine if this is the ground state or an excited state. If not, why not?...
-
Analysis of Percentage-of-Completion Financial Statements In 2010, Stein otter Construction Corp. began construction work under a 3-year contract. The contract price was $1,000,000. Stein otter uses...
-
T Corporation begin business May 1 , 2 0 2 3 and elected to end its tax year December 3 1 . The corporation s taxable income for the short period May 1 , 2 0 2 3 through December 3 1 , 2 0 2 3 was $...
-
10. The total current of a transistor is (5 Points) base current collector current emitter current beta current
-
Develop and elaborate a financial plan with short-term financial goals and a plan for a fresh graduate. You must identify and discuss the career choice of the fresh graduate. The plan must include...
-
When Ricardo was 9 years old, he was 56 inches tall. Ricardo is now 12 years old and he is 62 inches tall. Find the percent of increase in Ricardo's height to the nearest tenth
-
Assume that you plan to save $15,000 per year for the next 25 years. Using this financial resource, you wish to fund your retirement expenditure for exactly 20 years; and, assume that the annual...
-
What should you do if you have multiple personal commitments as well as study commitments?
-
The name of our business is Boxology. Boxology is a recyclable packaging organization that contracts with big-name companies such as Amazon, FedEx, and UPS. Boxology will grow as these larger...
-
A string array: Select one: a. Is actually an array of printers O b. Stores an actual pointer in each of its elements c. Can only provide access to strings of a certain length O d. Is always less...
-
CdF2 (s) Cd+ (aq) + 2 F- (aq) 1. A saturated solution of CdF2 is prepared. The equilibrium in the solution is represented above. In the solution [Cd+] eq = 0.0585 M and [F-] eq = 0.117 M. a....
-
Assuming that random is a SecureRandom object, explain in detail the stream pipeline: random.ints(1000000, 1, 3) .boxed() .collect(Collectors.groupingBy(Function.identity(), Collectors.counting()))...
-
a) Sum the odd integers between 1 and 99, using a for statement. Assume that the integer variables sum and count have been declared. b) Calculate the value of 2.5 raised to the power of 3, using the...
-
Modify the payroll system of Figs. 10.410.9 to include private instance variable birth Date in class Employee. Use class Date of Fig. 8.7 to represent an employees birthday. Add get methods to class...
-
Let \(U\) be a UNIFORm \([0,1]\) random variable and let \(\left\{X_{n}ight\}_{n=1}^{\infty}\) be a sequence of random variables such that \[X_{n}=\delta\left\{U ;\left(0,...
-
Let \(\left\{X_{n}ight\}_{n=1}^{\infty}\) be a sequence of random variables such that \[\lim _{n ightarrow \infty} E\left(\left|X_{n}-cight|ight)=0\] for some \(c \in \mathbb{R}\). Prove that \(X_{n}...
-
Let \(\left\{X_{n}ight\}_{n=1}^{\infty}\) be a sequence of independent random variables where \(X_{n}\) has probability distribution function \[f(x)= \begin{cases}1-n^{-1} & x=0 \\ n^{-1} &...
Study smarter with the SolutionInn App