Professional Documents
Culture Documents
1.execute The Following Program and Write Output
1.execute The Following Program and Write Output
1.execute The Following Program and Write Output
Program Code:
1.Execute the following program and write output
OUTPUT:
XIII. Exercise
1.Write Java Program to display following output.
CODE:
package Experiment4;
import java.applet.Applet;
import java.awt.*;
import java.applet.Applet;
import java.awt.*;
gbc.gridx = 1;
gbc.gridy = 0;
add(t1,gbc);
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.gridx = 0;
gbc.gridy = 1;
add(l2,gbc);
gbc.gridx = 1;
gbc.gridy = 1;
add(t2,gbc);
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.gridx = 1;
gbc.gridy = 2;
add(b1,gbc);
add(new Label("By Soham Parab 19"));
}
}
OUTPUT