The if statement is not a loop. In only needs {} if it is a loop, no?
Type: Posts; User: JohnEliot
The if statement is not a loop. In only needs {} if it is a loop, no?
In the very last method below
import javax.swing.JOptionPane;
public class program08 {
public static void main(String[] args) {
String getWeightString = JOptionPane.showInputDialog(null,...