Java Project – Logo Maker Application
In this project, we will create a Logo Maker Application in Java using Swing, Java I/O classes, and the Abstract Window Toolkit. We have tried to add as many Fonts as possible to provide...
In this project, we will create a Logo Maker Application in Java using Swing, Java I/O classes, and the Abstract Window Toolkit. We have tried to add as many Fonts as possible to provide...
Program 1 // Sales Data Analysis package src; import java.awt.*; import java.awt.event.*; import java.sql.*; import javax.swing.*; import javax.swing.table.DefaultTableModel; public class SalesAnalyticsApp extends JFrame { Connection conn; public SalesAnalyticsApp() { // Set up JFrame setTitle(“Sales...
SQL Queries CREATE DATABASE IF NOT EXISTS hospital_db; USE hospital_db; CREATE TABLE IF NOT EXISTS patients ( patient_id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100), age INT, gender VARCHAR(10), contact VARCHAR(15) ); CREATE TABLE IF...
SQL Queries CREATE DATABASE restaurant_db; USE restaurant_db; CREATE TABLE customers ( customer_id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100), contact VARCHAR(15) ); CREATE TABLE menu_items ( item_id INT AUTO_INCREMENT PRIMARY KEY, item_name VARCHAR(100), price DECIMAL(10,2)...
Program 1 import java.util.Scanner; public class TicTacToe { static char[][] board = { {‘ ‘, ‘ ‘, ‘ ‘}, {‘ ‘, ‘ ‘, ‘ ‘}, {‘ ‘, ‘ ‘, ‘ ‘} }; public static...
Program 1 import java.io.*; import java.util.*; public class ToDoListProject { static ArrayList<String> tasks=new ArrayList<String>(); public static void main(String[] args) { Scanner scan=new Scanner(System.in); int choice; do { System.out.println(“————To Do List——————-“); System.out.println(“1. Add Task in...
Program 1 public class FlashCard { private String question; private String answer; public FlashCard(String question, String answer) { this.question = question; this.answer = answer; } public String getQuestion() { return question; } public String...
Program 1 // Number Guess Game import java.util.Scanner; import java.util.Random; class NumberGuess { public static void main(String[] args) { try { Scanner scan=new Scanner(System.in); Random random=new Random(); int compchoice,userchoice; String choice; do { compchoice=random.nextInt(100);...
Program 1 // Con Toss Game import java.util.Scanner; import java.util.Random; public class CoinTossGame { public static void main(String[] args) { String choice; do { Scanner scan=new Scanner(System.in); Random random=new Random(); int coinchoice,userchoice; coinchoice=random.nextInt(2); //System.out.println(coinchoice);...
Program 1 // Rock Paper Scissors Game import java.util.Scanner; import java.util.Random; class RockPaperScissors { public static void main(String[] args) { Scanner scan=new Scanner(System.in); String choice[]={“rock”,”scissors”,”paper”}; String nextchoice; do { String userchoice; while(true) { System.out.println(“Enter...