Java Netbeans 6.5.1 Program That Print Largest Of The Three.

Q13. Design a Java Netbeans 6.5.1 program that accept three integer and print the largest of the three. Make  the use of only if statement.

Sol:

Create a GUI application as per following screenshot.

Type the following code by double clicking BtnLar, button, below the line that says, ‘// TODO add your handling code here’

int x,y,z;

x=Integer.parseInt(txt1.getText());

y=Integer.parseInt(txt2.getText());

z=Integer.parseInt(txt3.getText()); Read More …