I know these two statements can be combined into one, but I can't find the exact syntax to make it work and make it "legal" by Java's Nazi syntax rules..
I have many instances of this in a couple of my programs, and I am trying to "clean things up" as best I can.
I can't seem to find it in my textbooks, and my lame attempts generate the usual list of errors when I try to compile. Anybody remember off the top of their head?
code:<HR>Code:strVariable = JOptionPane.showInputDialog ("user input"); intVariable = Integer.parseInt (strVariable);
I have many instances of this in a couple of my programs, and I am trying to "clean things up" as best I can.
I can't seem to find it in my textbooks, and my lame attempts generate the usual list of errors when I try to compile. Anybody remember off the top of their head?