Study with Pawara
Study with Pawara
  • Видео 99
  • Просмотров 2 807
E21|P02|ATM System Development in Java| Loading DB Data in JTable&Manage |IntelliJ IDEA 2024|Sinhala
E21|P02 | ATM System Development in Java | Loading DB Data in JTable and Manage | IntelliJ IDEA 2024| Sinhala
Welcome to the 21th video Part 02 in our exciting ATM System Development series! In this video, we’ll kick off by Backend development and SQL Query development and designing parts for loading the data from the database and the operation of Print command, search and more functions of report generation of the bank system with connecting with our system and MySQL Database of the system using in IntelliJ IDEA 2024.
This series is perfect for those looking to build real-world systems using Java and MySQL.
What you will learn in this series:
• How to integrate MySQL with Java for secure dat...
Просмотров: 10

Видео

E21|P01|ATM System Development in Java|Loading DB Data in JTable&Manage | IntelliJ IDEA 2024|Sinhala
Просмотров 109 часов назад
E21|P01 | ATM System Development in Java | Loading DB Data in JTable and Manage | IntelliJ IDEA 2024| Sinhala Welcome to the 21th video Part 01 in our exciting ATM System Development series! In this video, we’ll kick off by Backend development and SQL Query development and designing parts for loading the data from the database and the operation of Print command, search and more functions of rep...
Lesson 6 part 03| Switch | Master Java | | Condition Statement| Sinhala Tutorial | Study with Pawara
Просмотров 3День назад
Lesson 6 Part 03 | Master Java Switch Statement | Java Condition Statements in Sinhala | Study with Pawara Welcome to Lesson 6 Part 03 of the Master Java series! In this tutorial, we dive deep into the Switch statement in Java, a powerful conditional tool for handling multiple cases efficiently. Learn how to use the switch statement to make your code more readable and organized as we explore sy...
Lesson 6 part 02| Switch | Master Java | | Condition Statement| Sinhala Tutorial | Study with Pawara
Просмотров 7День назад
Lesson 6 Part 02 | Master Java Switch Statement | Java Condition Statements in Sinhala | Study with Pawara Welcome to Lesson 6 Part 01 of the Master Java series! In this tutorial, we dive deep into the Switch statement in Java, a powerful conditional tool for handling multiple cases efficiently. Learn how to use the switch statement to make your code more readable and organized as we explore sy...
E20 | ATM System Development in Java | Report Control | IntelliJ IDEA 2024| Sinhala
Просмотров 14День назад
E20 | ATM System Development in Java | Report Control | IntelliJ IDEA 2024| Sinhala Welcome to the 20th video in our exciting ATM System Development series! In this video, we’ll kick off by Backend development and SQL Query development and designing parts for Simple Report Format Generating process of Statement generating part of the customer part of the bank with connection with our system and...
E19 | ATM System Development in Java | Update Query | IntelliJ IDEA 2024| Sinhala
Просмотров 6День назад
E19 | ATM System Development in Java | Update Query | IntelliJ IDEA 2024| Sinhala Welcome to the 19th video in our exciting ATM System Development series! In this video, we’ll kick off by Backend development and SQL Query development and designing parts for Query update process of changing Pin number of the customer part of bank with connection with our system and MySQL Database of the system u...
E18 | ATM System Development in Java | initial balance calculation | IntelliJ IDEA 2024 | Sinhala
Просмотров 5День назад
E18 | ATM System Development in Java | initial balance calculation | IntelliJ IDEA 2024 | Sinhala Welcome to the 18th video in our exciting ATM System Development series! In this video, we’ll kick off by Backend development and SQL Query development and designing parts for Transaction process of withdrawal and deposit parts of banking with connection with our system and MySQL Database of the sy...
E17 Part 03 | ATM System Development in Java |Transaction Function |IntelliJ IDEA 2024 | Sinhala
Просмотров 714 дней назад
E17 Part 03 | ATM System Development in Java |Transaction Function |IntelliJ IDEA 2024 | Sinhala Welcome to the 17 video of Part 03 in our exciting ATM System Development series! In this video, we’ll kick off by Backend development and SQL Query development and designing parts for Transaction process of withdrawal and deposit parts of banking with connection with our system and MySQL Database o...
E17 Part 02 | ATM System Development in Java |Transaction Function | IntelliJ IDEA 2024 | Sinhala
Просмотров 514 дней назад
E17 Part 02 | ATM System Development in Java |Transaction Function | IntelliJ IDEA 2024 | Sinhala Welcome to the 17 video of Part 02 in our exciting ATM System Development series! In this video, we’ll kick off by Backend development and SQL Query development and designing parts for Transaction process of withdrawal and deposit parts of banking with connection with our system and MySQL Database ...
E17 Part 01 | ATM System Development in Java | Transaction Function | IntelliJ IDEA 2024 | Sinhala
Просмотров 814 дней назад
E17 Part 01 | ATM System Development in Java | Transaction Function | IntelliJ IDEA 2024 | Sinhala Welcome to the 17 video of Part 01 in our exciting ATM System Development series! In this video, we’ll kick off by Backend development and SQL Query development and designing parts for Transaction process of withdrawal and deposit parts of banking with connection with our system and MySQL Database...
E16 Part 03|ATM System Development in Java |Banking Function |IntelliJ IDEA 2024|Sinhala
Просмотров 2814 дней назад
E16 Part 03|ATM System Development in Java |Banking Function |IntelliJ IDEA 2024|Sinhala E16 Part 03|ATM System Development in Java |Banking Function |IntelliJ IDEA 2024|Sinhala Welcome to the 16 video of Part 03 in our exciting ATM System Development series! In this video, we’ll kick off by Backend development and SQL Query development and designing parts for Transaction process of withdrawal ...
E16 Part 02|ATM System Development in Java |Banking Function |IntelliJ IDEA 2024|Sinhala
Просмотров 1014 дней назад
E16 Part 02 | ATM System Development in Java | Banking Function | IntelliJ IDEA 2024 | Sinhala Welcome to the 16 video of Part 02 in our exciting ATM System Development series! In this video, we’ll kick off by Backend development and SQL Query development and designing parts for Transaction process of withdrawal and deposit parts of banking with connection with our system and MySQL Database of ...
E16 Part 01|ATM System Development in Java |Banking Function |IntelliJ IDEA 2024|Sinhala
Просмотров 514 дней назад
E16 Part 01 | ATM System Development in Java | Banking Function | IntelliJ IDEA 2024 | Sinhala Welcome to the 16 video of Part 01 in our exciting ATM System Development series! In this video, we’ll kick off by Backend development and SQL Query development and designing parts for Transaction process of withdrawal and deposit parts of banking with connection with our system and MySQL Database of ...
Lesson 6 part 01| Switch | Master Java | | Condition Statement| Sinhala Tutorial | Study with Pawara
Просмотров 1714 дней назад
Lesson 6 Part 01 | Master Java Switch Statement | Java Condition Statements in Sinhala | Study with Pawara Welcome to Lesson 6 Part 01 of the Master Java series! In this tutorial, we dive deep into the Switch statement in Java, a powerful conditional tool for handling multiple cases efficiently. Learn how to use the switch statement to make your code more readable and organized as we explore sy...
E15 Part 02 | ATM System Development in Java |JOIN the SQL Table |IntelliJ IDEA 2024|Sinhala
Просмотров 1114 дней назад
E15 Part 02 | ATM System Development in Java |JOIN the SQL Table |IntelliJ IDEA 2024 | Sinhala Welcome to the 15 video of our exciting ATM System Development series! In this video, we’ll kick off by Backend development and SQL Query development and designing parts for Data searching and filtering parts from a designing JTable with a scroll Panel with MySQL Database of the system using in Intell...
E15| Part 01 |ATM System Development in Java |JOIN the SQL Table |IntelliJ IDEA 2024|Sinhala
Просмотров 914 дней назад
E15| Part 01 |ATM System Development in Java |JOIN the SQL Table |IntelliJ IDEA 2024|Sinhala
E14 | ATM System Development in Java | JTable and JPanel Development | IntelliJ IDEA 2024 | Sinhala
Просмотров 1614 дней назад
E14 | ATM System Development in Java | JTable and JPanel Development | IntelliJ IDEA 2024 | Sinhala
Lesson 5| If Case | Master Java | | Condition Statement| Sinhala Tutorial | Study with Pawara
Просмотров 714 дней назад
Lesson 5| If Case | Master Java | | Condition Statement| Sinhala Tutorial | Study with Pawara
E13.|ATM System Development in Java |Backend Development |IntelliJ IDEA 2024|Sinhala
Просмотров 1014 дней назад
E13.|ATM System Development in Java |Backend Development |IntelliJ IDEA 2024|Sinhala
E12 | ATM System Development in Java | Backend Development | IntelliJ IDEA 2024 | Sinhala |Pawara
Просмотров 1414 дней назад
E12 | ATM System Development in Java | Backend Development | IntelliJ IDEA 2024 | Sinhala |Pawara
E11 | ATM System Development in Java | Frontend Development | IntelliJ IDEA 2024 | Sinhala
Просмотров 1514 дней назад
E11 | ATM System Development in Java | Frontend Development | IntelliJ IDEA 2024 | Sinhala
E10.|ATM System Development in Java | Data Handling in MySQL DB |IntelliJ IDEA 2024|Sinhala
Просмотров 1421 день назад
E10.|ATM System Development in Java | Data Handling in MySQL DB |IntelliJ IDEA 2024|Sinhala
E9|ATM System Development in Java |MySQL DB Connection & Insert the Data| IntelliJ IDEA 2024|Sinhala
Просмотров 2721 день назад
E9|ATM System Development in Java |MySQL DB Connection & Insert the Data| IntelliJ IDEA 2024|Sinhala
E8.|ATM System Development in Java |Random Class |IntelliJ IDEA 2024|Sinhala
Просмотров 1521 день назад
E8.|ATM System Development in Java |Random Class |IntelliJ IDEA 2024|Sinhala
E7.|ATM System Development in Java |Database Development using MySQL |IntelliJ IDEA 2024|Sinhala
Просмотров 2421 день назад
E7.|ATM System Development in Java |Database Development using MySQL |IntelliJ IDEA 2024|Sinhala
E6 | ATM System Development in Java | Sign up Application Form Swing | IntelliJ IDEA 2024 | Sinhala
Просмотров 1421 день назад
E6 | ATM System Development in Java | Sign up Application Form Swing | IntelliJ IDEA 2024 | Sinhala
E5|ATM System Development in Java | Sign up Application Form |Swing | IntelliJ IDEA 2024|Sinhala
Просмотров 921 день назад
E5|ATM System Development in Java | Sign up Application Form |Swing | IntelliJ IDEA 2024|Sinhala
E4|ATM System Development in Java|Sign up Application Form |Java Swing | IntelliJ IDEA 2024|Sinhala
Просмотров 1721 день назад
E4|ATM System Development in Java|Sign up Application Form |Java Swing | IntelliJ IDEA 2024|Sinhala
E3| ATM System Development in Java| Login Page using Java Swing Part 2| IntelliJ IDEA 2024 |Sinhala
Просмотров 1128 дней назад
E3| ATM System Development in Java| Login Page using Java Swing Part 2| IntelliJ IDEA 2024 |Sinhala
E2|ATM System Development in Java| Login Page using Java Swing Part 1-B| IntelliJ IDEA 2024 |Sinhala
Просмотров 1328 дней назад
E2|ATM System Development in Java| Login Page using Java Swing Part 1-B| IntelliJ IDEA 2024 |Sinhala

Комментарии

  • @StudywithPawara2024
    @StudywithPawara2024 4 дня назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 4 дня назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @MrLayya
    @MrLayya 5 дней назад

    thank you bro

  • @StudywithPawara2024
    @StudywithPawara2024 12 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 13 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 13 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 13 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 14 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 14 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 14 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 15 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 15 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 15 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 16 дней назад

    package ATM; import java.awt.*; import java.sql.*; import java.util.*; import javax.swing.*; import javax.swing.table.DefaultTableModel; import javax.swing.table.JTableHeader; public class CustomerDetailsAll extends JFrame { JTable table; DefaultTableModel model; JTextField searchField; JComboBox searchColumnsBox; JButton searchButton,refreshButton,printButton,backButton; Connection conn; public CustomerDetailsAll(){ setLayout(new BorderLayout()); getContentPane().setBackground(new Color(30, 30, 30)); model = new DefaultTableModel(); table = new JTable(model); table.setBackground(new Color(30, 30, 30)); table.setForeground(new Color(250, 250, 250)); table.setFont(new Font("Serif", Font.PLAIN, 18)); table.setRowHeight(30); JTableHeader tableHeader = table.getTableHeader(); tableHeader.setFont(new Font("Serif", Font.BOLD, 18)); tableHeader.setBackground(new Color(30, 30, 30)); tableHeader.setForeground(new Color(250, 250, 250)); JScrollPane scrollPane = new JScrollPane(table); add(scrollPane, BorderLayout.CENTER); JPanel searchPanel = new JPanel(); searchPanel.setBackground(new Color(30, 30, 30)); JLabel searchLabel = new JLabel("Search by:"); searchLabel.setForeground(new Color(250, 250, 250)); searchLabel.setFont(new Font("Serif", Font.BOLD, 18)); searchField = new JTextField(20); searchField.setFont(new Font("Serif", Font.BOLD, 18)); String [] searchColumns = { "formNo", "Full_Name", "Father_Name", "DOB", "Gender", "Email", "Marital", "Address", "District", "Phone_No", "Provincial", "Postal_Code", "City" }; searchColumnsBox = new JComboBox<>(searchColumns); searchColumnsBox.setFont(new Font("Serif", Font.BOLD, 18)); searchColumnsBox.setBackground(new Color(30, 30, 30)); searchColumnsBox.setForeground(new Color(250, 250, 250)); searchButton = new JButton("Search"); styleButtons(searchButton, new Color(0, 123, 255)); refreshButton = new JButton("Refresh"); styleButtons(refreshButton, new Color(40, 167, 69)); printButton = new JButton("Print"); styleButtons(printButton, new Color(220, 53, 69)); backButton = new JButton("Back"); styleButtons(backButton, new Color(255, 193, 7)); searchPanel.add(searchLabel); searchPanel.add(searchField); searchPanel.add(searchColumnsBox); searchPanel.add(searchButton); searchPanel.add(refreshButton); searchPanel.add(printButton); searchPanel.add(backButton); add(searchPanel, BorderLayout.NORTH); conn = new Conn().c; loadTableData(null,null); searchButton.addActionListener(e -> searchAction()); refreshButton.addActionListener(e -> loadTableData(null,null)); printButton.addActionListener(e -> { try { table.print(); }catch (Exception ex) { ex.printStackTrace(); } }); backButton.addActionListener(e -> { setVisible(false); new AdminPanel().setVisible(true); }); setTitle("Customer Details All"); setSize(1200,700); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setVisible(true); } public void styleButtons(JButton button, Color color){ button.setPreferredSize(new Dimension(150,50)); button.setBackground(color); button.setForeground(color.WHITE); button.setFont(new Font("Serif", Font.BOLD, 18)); } private void loadTableData(String column, String value) { try { String query = "SELECT p1.formNo, p1.fullName AS Full_Name, p1.fatherName AS Father_Name, p1.gender AS Gender, " + "p2.email AS Email, p2.marital AS Marital, p2.address AS Address, p2.district AS District, " + "p3.phoneNo AS Phone_No, p3.provincial AS Provincial, p3.postalCode AS Postal_Code, p3.city AS City " + "FROM perdetail1 p1 " + "JOIN perdetail2 p2 ON p1.formNo = p2.formNo " + "JOIN perdetail3 p3 ON p1.formNo = p3.formNo"; if (column != null && value != null && !value.isEmpty()) { String actualColumn = switch (column) { case "formNo" -> "p1.formNo"; case "Full_Name" -> "p1.fullName"; case "Father_Name" -> "p1.fatherName"; case "Gender" -> "p1.gender"; case "Email" -> "p2.email"; // Update to p2 case "Marital" -> "p2.marital"; // Update to p2 case "Address" -> "p2.address"; // Update to p2 case "District" -> "p2.district"; // Update to p2 case "Phone_No" -> "p3.phoneNo"; // Update to p3 case "Provincial" -> "p3.provincial"; case "Postal_Code" -> "p3.postalCode"; case "City" -> "p3.city"; default -> column; }; query += " WHERE " + actualColumn + " LIKE ?"; // Ensure there's a space before WHERE } PreparedStatement ps = conn.prepareStatement(query); if (column != null && value != null && !value.isEmpty()) { ps.setString(1, "%" + value + "%"); // Adjusted for proper LIKE clause } ResultSet rs = ps.executeQuery(); ResultSetMetaData rsmd = rs.getMetaData(); model.setRowCount(0); model.setColumnCount(0); int cols = rsmd.getColumnCount(); Vector<String> columnNames = new Vector<>(); for (int i = 0; i < cols; i++) { columnNames.add(rsmd.getColumnName(i + 1)); } model.setColumnIdentifiers(columnNames); while (rs.next()) { Vector<String> row = new Vector<>(); for (int i = 0; i < cols; i++) { row.add(rs.getString(i + 1)); } model.addRow(row); } } catch (SQLException ex) { ex.printStackTrace(); } } private void searchAction(){ String searchValue = searchField.getText(); String searchColumn = searchColumnsBox.getSelectedItem().toString(); loadTableData(searchColumn,searchValue); } public static void main(String[] args) { new CustomerDetailsAll(); } }

  • @StudywithPawara2024
    @StudywithPawara2024 16 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 16 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 16 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 17 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 17 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 17 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 19 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 20 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @SujithSuranga-bq3hk
    @SujithSuranga-bq3hk 21 день назад

  • @StudywithPawara2024
    @StudywithPawara2024 21 день назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 22 дня назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 23 дня назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @AyeshIroshan
    @AyeshIroshan 24 дня назад

    goood🤜🤜🤜

  • @StudywithPawara2024
    @StudywithPawara2024 24 дня назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 25 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 26 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 26 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 27 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 29 дней назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    import java.util.Scanner; public class VotingSystem { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); // Step 1: Create list of candidates String[] candidates = {"Alice", "Bob", "Charlie"}; int[] votes = new int[candidates.length]; // Step 2: Input number of voters System.out.print("Enter the number of voters: "); int numVoters = scanner.nextInt(); // Step 3: Cast votes for (int i = 0; i < numVoters; i++) { System.out.println(" Voter " + (i + 1) + ", choose your candidate:"); for (int j = 0; j < candidates.length; j++) { System.out.println((j + 1) + ". " + candidates[j]); } int vote = scanner.nextInt(); if (vote > 0 && vote <= candidates.length) { votes[vote - 1]++; } else { System.out.println("Invalid vote."); } } // Step 4: Display vote counts System.out.println(" --- Election Results ---"); int maxVotes = 0; String winner = ""; for (int i = 0; i < candidates.length; i++) { System.out.println(candidates[i] + ": " + votes[i] + " votes"); if (votes[i] > maxVotes) { maxVotes = votes[i]; winner = candidates[i]; } } // Step 5: Announce the winner System.out.println("The winner is: " + winner); scanner.close(); } }

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Pseudo Code: 1. Start 2. Create a list of candidates (e.g., "Anura", "Sajith", "Namal") 3. Create an array to store vote counts, initialized to 0 for each candidate 4. Prompt the user to enter the number of voters 5. Read the number of voters and store it in numOfVoters 6. For each voter (loop from 1 to numOfVoters): o Display the list of candidates with numbers o Ask the voter to choose a candidate by entering the candidate's number o Read the voter's input o If the input is valid (i.e., a number between 1 and the number of candidates):  Increment the vote count for the selected candidate o Else:  Display "Invalid vote" 7. Display "Election Results" 8. For each candidate: o Display the candidate’s name and the number of votes they received o Check if the candidate received more votes than the current highest vote count (maxVote)  If yes, update maxVote and set this candidate as the winner 9. Display the name of the candidate with the highest votes (winner) 10. End

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Election Voting System You are developing a basic election voting system where users can cast their votes for a predefined list of candidates. Requirements: 1. Input: o Create a list of candidates. o Input the number of voters. o Each voter can vote for one candidate from the list. 2. Processing: o Count the votes for each candidate. o Identify the candidate with the most votes. 3. Output: o Display the vote count for each candidate. o Announce the winner.

  • @StudywithPawara2024
    @StudywithPawara2024 Месяц назад

    Fb page Link - facebook.com/EnglishWithPawara?mibextid=ZbWKwL RUclips Link - www.youtube.com/@StudywithPawara2024 Telegram Group Link - t.me/englishwithpawara