This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.awt.*; | |
| import javax.swing.*; | |
| import java.awt.event.*; | |
| public class Calculator extends JFrame { | |
| JTextField one, two; | |
| JButton sum, sub; | |
| JLabel result; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.awt.*; | |
| import javax.swing.*; | |
| import java.awt.event.*; | |
| import javax.swing.event.*; | |
| public class HaveFun extends JFrame{ | |
| JButton button; | |
| JTextField text; | |
| public HaveFun(String title) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.awt.*; | |
| import javax.swing.*; | |
| import java.awt.event.*; | |
| import java.util.Random; | |
| import javax.swing.event.*; | |
| public class ChangeBackGround extends JFrame { | |
| JButton button; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Program to read input from console and display in console. | |
| import java.io.BufferedReader; | |
| import java.io.InputStreamReader; | |
| import java.io.IOException; | |
| class Main | |
| { | |
| public static void main (String[]args) throws IOException |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.sql.Connection; | |
| import java.sql.DriverManager; | |
| import java.sql.Statement; | |
| import java.sql.SQLException; | |
| public class StringFormat { | |
| public static final String JDBC_DRIVER = "com.mysql.cj.jdbc.Driver"; | |
| public static final String JDB_URL = "jdbc:mysql://localhost:3306/gces"; |




