RE: java.lang.NumberFormatException: For input string: ""

2021-05-04 Thread John Barrow
Yes, Integer.parseInt() doesn't accept the empty string as a valid number. You would have to initialise the strings to "0" as a default and then would be OK.I think it is a bit of an opinion boundary case in that when I first discovered it, I thought that the empty string should equate to 0, as

Re: java.lang.NumberFormatException: For input string: ""

2021-05-03 Thread Laszlo Kishalmi
That seems to be right. On 5/3/21 9:30 PM, Zulfi Khan wrote: Hi, I am getting following message when I am compiling my program on NetBeans 12.3 on Ubuntu 18.04: cd /home/zulfi/NetBeansProjects/GUI1; JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64 /snap/netbeans/45/netbeans/java/maven/bin/mvn