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
| package Exam2; | |
| import java.io.*; | |
| import java.util.*; | |
| /** | |
| * Student class | |
| * | |
| * @author viettuts.vn | |
| */ |
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
| package jp2.session1.assignment1; | |
| import java.sql.*; | |
| import static jp2.session1.assignment1.FPTLibrary.Connect.connect; | |
| public class FPTLibrary { | |
| public static class Connect { | |
| public static Connection connect() { | |
| try { | |
| Class.forName("com.mysql.cj.jdbc.Driver"); |
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
| package Exam1; | |
| public class Complex { | |
| private double realPart; | |
| public Complex(double realPart) { | |
| realPart = a; | |
| imaginaryPart = 0; | |
| } |
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
| package Exam1; | |
| import java.util.Scanner; | |
| public class ComplexTest { | |
| public static void main(String[] args) { | |
| Scanner input = new Scanner(System.in); | |
| System.out.println("Enter the first complex number: "); | |
| double realPart = input.nextDouble(); | |
| System.out.println("Enter the second complex number: "); |
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
| package javafx.session9; | |
| import java.awt.*; | |
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; | |
| import java.awt.event.KeyEvent; | |
| import java.awt.event.KeyListener; | |
| import java.io.File; | |
| import java.io.FileInputStream; | |
| import java.io.FileOutputStream; | |
| import java.io.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
| package assignment7; | |
| import javax.swing.*; | |
| import javax.swing.border.TitledBorder; | |
| import javax.swing.event.ListSelectionEvent; | |
| import javax.swing.event.ListSelectionListener; | |
| import javax.swing.table.DefaultTableModel; | |
| import java.awt.*; | |
| import java.awt.event.ActionEvent; | |
| import java.awt.event.ActionListener; |
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
| package assignment7; | |
| import java.io.Serializable; | |
| public class Product implements Serializable { | |
| private static final long serialVersionUID = 1L; | |
| private String productId; | |
| private String productName; | |
| private String description; |
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
| package assignment7; | |
| import java.io.Serializable; | |
| import java.util.ArrayList; | |
| public class Category implements Serializable { | |
| private static final long serialVersionUID = 1L; | |
| private String cateId; |
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
| package session6.lab1; | |
| import java.util.ArrayList; | |
| import java.util.List; | |
| import java.util.Scanner; | |
| import java.util.Collections; | |
| import java.util.Comparator; | |
| public class Student { | |
| static List<Student> studentList; | |
| static Scanner scan; |
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
| package session5.lab2; | |
| import java.util.Scanner; | |
| public class KhachHang_CTQuanLy { | |
| public static void main(String[] args){ | |
| KhachHangList lkh = new KhachHangList(); | |
| Scanner in = new Scanner(System.in); | |
| int x; | |
| do { | |
| System.out.println("0.Thoat ung dung "); |
NewerOlder