Posts

Database to java application

 package vadodara; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; public class Student { public static void main(String[] args)throws Exception { // Loading & Registering DB Driver Class.forName("com.mysql.cj.jdbc.Driver"); //Creating Connection Connection conn =  DriverManager.getConnection("jdbc:mysql://localhost:3306/parul", "root", "root"); Statement st = conn.createStatement(); ResultSet rs = st.executeQuery("select * from movies"); while(rs.next()) { System.out.println(rs.getInt(1)+":"+rs.getString(2)+":"+rs.getString(3)+":"+rs.getString(4)); } } }

ERP Software Links

Download  For downloading Required software need to click below link 1. My-eclipse  https://drive.google.com/file/d/1vViwvyqj4Lx2gLo6wAIEd7n2XrAtY9wf/view?usp=drive_link (You need to download that file and extract it -> after extraction open eclipse ) 2. Apache Tomcat  https://drive.google.com/file/d/1c4jI7xwrCp6Z4kOBqRN8hFiG-Bg0lifT/view?usp=drive_link 3. JDK setup https://drive.google.com/file/d/19lPPmH7KLw6wKi80eVEcnSPJCegefH6u/view?usp=drive_link (you need to download and extract that file -> after that create folder in C Drive - Program Files -create java folder -> here you paste extracted folder)  4. Mysql-Connector jar (type-4 driver jar) https://drive.google.com/file/d/1hsEx6q6m7UppCr9FebttPDydV6m40jhn/view?usp=drive_link ------------------------------------------------------------------------------------------------------------------------- PDF Documents List Steps to download and install mysql database https://drive.google.com/file/d/1yccahWmD8NjrM...

Core Java

Language fundamentals  Agenda : 1. identifiers 2. Reserved word 3.Data Types 4. Literals  5. Array 6. Types of Variables 7. var-arg method 8. main method 9. command line arguments 10. java coding standard ====================================================== 1. Identifiers : a name in java program is called identifier which can be used for identification purpose.it can be method name, class name, variable name or label name. class Test  { public static void main(String args[]) { int x=10; } } Q1. how many identifiers? Answer : 5 Rules for defining java identifiers 1. the only allowed characters are - A to Z , a to z, 0 to 9, $ , _ total_number ? total# ? 2. identifiers cant start with digit total123 ? 123total ? 3. java identifiers are case sensitive (java language is case sensitive) int number =10 int Number =20 int NUMBER =30 4.there is no length limit for java identifier but it is not recommended to take too lengthy identifier 5 we cant use reserve words as identifier...

Practice Program list

1. Print Numbers from 1 to 10 2.Print Even Numbers between 1 and 20: 3.Calculate the Sum of Numbers from 1 to 100: 4.Print Multiplication Table of 5: 5.Reverse a String: 6.Factorial of a Number: 7.Check if a Number is Prime: 8.Fibonacci Series up to 10 terms: 9.Count Digits in a Number 10.

Java Program to Count Number of Words in Given String

 Java Program to Count Number of Words in Given String //Java Program to Count Number of Words in Given String class WordCount { public static void main(String[] args) { String str="hello this is shweta, i am from bihar"; int count=0; for(int i=0;i<str.length();i++){ if(str.charAt(i)==' '){ count++; } } System.out.println(count); System.out.println("So , total number of words are :"+(count+1)); } }

Java Script From Basics

Click Here to learn Mouse Events   https://avascriptlearn.blogspot.com/2022/10/mouse-events-in-java-script.html Ball & Slider https://avascriptlearn.blogspot.com/2022/10/ball-slider.html  

Java Programs Record

 Java Programs Program 1-Write a program to print your name in output screen https://easyjavabyme.blogspot.com/2022/09/java-program1.html Program 2-