slip no 1 1. public class s1_1 extends Thread { char c; public void run() { for(c = 'A'; c<='Z';c++) { System.out.println(""+c); try { Thread.sleep(3000); } catch(Exception e) { e.printStackTrace(); } } } public static void main(String args[]) { s1_1 t = new s1_1(); t.start(); } } 2. import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.sql.*; public class s1_2 extends Frame implements ActionListener { Label l1, l2, l3; TextField t1, t2, t3; Button b; Connection cn; Statement st; ResultSet rs; public s1_2() { setLayout(null); l1 = new Label("Eno"); l2 = new Label("EName"); ...
Posts
Showing posts from April, 2024