Posts

Image
                                                                      Learning to Code                                                                  ArrayList.                                                                  Question - I mplementing all methods of ArrayList  Create an ArrayList Num with size 12. add  6 numbers 12,14,65,56,80,100 adjust the size automatically.  Show the each item of arraylist iterating.  Remove 100 and find last index of 14. Check whether 99 belong to ArrayList or not. How to find arraylist is not empty. Set element 12 to 873 ..use clone method and clear  check if element at 4 index is 98 or not Convert Num to array.                                                Solution- import java.util.*; public class DsArrayList { public static void main (String Args[]){ ArrayList al= new ArrayList(); ArrayList<Integer> Num = new ArrayList<>(12); //add method Num.add(12); Num.add(14); Num.add(65); Num.add(56); Num.

How Well You know MYSQL

                                                                Question:- Create a Table named as Elevn with A database named Markheet where Table is like this. where RNO and Name = Varchar and Physics ,maths,Chemistry,total= integer     RNO            NAME           Physics           Maths          Chemistry           Total      1                 Ram                89                    92                  83                  2                 Sam                 67                    78                  99      3                 Ron                  76                   98                  65      4                 Julia                 100                  34                 54      5                 Harry                80                    9                  95                                                Questions- 1. Change value of maths of student harry from 9 to 98 2. Display details of students in descding order 3. Calculate total marks of  each student 4. add a new

Basics of MYSQL

Image
                                                          Syntax You Must Know- You Must learn this syntax by heart Then You can solve any query in Mysql. ​

How to Create a Video Login page in Jframe In Java Netbeans

Image
  Here Is the source Code Subscribe and comment !! package javaapplication4;          import jaco.mp3.player.MP3Player; import java.io.File; import javax.swing.JFrame; import javax.swing.JOptionPane; /**  *  * @author jeeva  */ public class Loginpage extends javax.swing.JFrame {          public Loginpage() {         initComponents();                  setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);         setExtendedState(JFrame.MAXIMIZED_HORIZ);          setResizable(false);          }     /**      * This method is called from within the constructor to initialize the form.      * WARNING: Do NOT modify this code. The content of this method is always      * regenerated by the Form Editor.      */     @SuppressWarnings("unchecked")     // <editor-fold defaultstate="collapsed" desc="Generated Code">                               private void initComponents() {         jPanel1 = new javax.swing.JPanel();         User = new javax.swing.JTextField();  

How to Make a Registeration Gui Form in Java Netbeans

Image
    Here is the Screenshot of the Code. Here is the code- import java.io.File; import javax.swing.JFrame; import javax.swing.JOptionPane; public class Register extends javax.swing.JFrame {     /**      * Creates new form Register      */     public Register() {         initComponents();         Submit.setEnabled(false);         setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);         setExtendedState(JFrame.MAXIMIZED_HORIZ);          setResizable(false);     }     /**      * This method is called from within the constructor to initialize the form.      * WARNING: Do NOT modify this code. The content of this method is always      * regenerated by the Form Editor.      */     @SuppressWarnings("unchecked")     // <editor-fold defaultstate="collapsed" desc="Generated Code">                               private void initComponents() {         jPanel1 = new javax.swing.JPanel();         jLabel1 = new javax.swing.JLabel();         jLabel2 = new javax.sw

Airline Ticket Reservation System Project in Java Netbeans

Image
                                             Fly the Friendly Skies Airline Ticket Reservation System In Java is a free  project made by Learning to Code. This project Features:- Use of Jframe Gui Design Javax tools Modern login / Register Systems Security and Protection Payment via cards and bank accounts and Much More. Here are some Screenshots of This project-     Hope you find this project helpful.    Help us reach 1k subs on youtube.    Do Subscribe the Channel and get This project for free.   Youtube Channel :- Learning to Code.  Link for video- https://www.youtube.com/watch?v=JuDVAn_KxK4&t=131s

How to Create a ProgressBar with a button in Java Netbeans.

Welcome To Java Tutorials Presented by Learning To Code                                             Java Netbeans First you need to implement ActionListener with your class- public class progresso implements ActionListener{      public void actionPerformed(ActionEvent evt){               int n= progress.getValue(); // here progress= progressbar               if(n<100){                   n++;       // label means the text which get updated,(0%)                    label.setText(Integer.toString(n)+"%");              progress.setValue(n);                                  }               else{                   timer.stop();               }       }}                    Now you need to write this code in the button action performed         timer=new Timer(50,new your class name.progresso());         timer.start();     Last You need to Declare the variable timer at variable declaration private Timer timer;  // Variables declaration - do not modify//     private javax.swing.JProgr