Suche senden
Hochladen
Java Programs
•
Als DOCX, PDF herunterladen
•
0 gefällt mir
•
10 views
S
Seetharamaiah Vadde
Folgen
dddddddddddddd
Weniger lesen
Mehr lesen
Ingenieurwesen
Melden
Teilen
Melden
Teilen
1 von 9
Jetzt herunterladen
Empfohlen
Empolyee deatils in java
Empolyee deatils in java
DEEPAK KUMAR MAURYA
Async Testing giving you a sinking feeling
Async Testing giving you a sinking feeling
Erin Zimmer
Throttle and Debounce Patterns in Web Apps
Throttle and Debounce Patterns in Web Apps
Almir Filho
Backdoor coding
Backdoor coding
abdesslem amri
XpUg Coding Dojo: KataYahtzee in Ocp way
XpUg Coding Dojo: KataYahtzee in Ocp way
Giordano Scalzo
The Ring programming language version 1.5.3 book - Part 89 of 184
The Ring programming language version 1.5.3 book - Part 89 of 184
Mahmoud Samir Fayed
Agile Iphone Development
Agile Iphone Development
Giordano Scalzo
Debugging JavaScript with Chrome
Debugging JavaScript with Chrome
Igor Zalutsky
Empfohlen
Empolyee deatils in java
Empolyee deatils in java
DEEPAK KUMAR MAURYA
Async Testing giving you a sinking feeling
Async Testing giving you a sinking feeling
Erin Zimmer
Throttle and Debounce Patterns in Web Apps
Throttle and Debounce Patterns in Web Apps
Almir Filho
Backdoor coding
Backdoor coding
abdesslem amri
XpUg Coding Dojo: KataYahtzee in Ocp way
XpUg Coding Dojo: KataYahtzee in Ocp way
Giordano Scalzo
The Ring programming language version 1.5.3 book - Part 89 of 184
The Ring programming language version 1.5.3 book - Part 89 of 184
Mahmoud Samir Fayed
Agile Iphone Development
Agile Iphone Development
Giordano Scalzo
Debugging JavaScript with Chrome
Debugging JavaScript with Chrome
Igor Zalutsky
Hashing enderecamento aberto bean - bean
Hashing enderecamento aberto bean - bean
Elaine Cecília Gatto
PyCon lightning talk on my Toro module for Tornado
PyCon lightning talk on my Toro module for Tornado
emptysquare
Javascript Common Mistakes
Javascript Common Mistakes
동수 장
PHPUnit Myth
PHPUnit Myth
jameslabs
Formal methods Project Report for the support of slides uploaded
Formal methods Project Report for the support of slides uploaded
Shoaib Haseeb
New feature of async fakeAsync test in angular
New feature of async fakeAsync test in angular
Jia Li
Teorical 1
Teorical 1
everblut
Adding two integers in c
Adding two integers in c
Khuthbu Din
Transaction Management Tool
Transaction Management Tool
Peeyush Ranjan
{{components deepDive=true}}
{{components deepDive=true}}
raytiley
Orsiso
Orsiso
e27
Andrii Orlov "Generators Flexibility in Modern Code"
Andrii Orlov "Generators Flexibility in Modern Code"
LogeekNightUkraine
Unbounded
Unbounded
Ever Blut
Unbounded
Unbounded
Ever Blut
Theorical 1
Theorical 1
everblut
Rust
Rust
Chih-Hsuan Kuo
Teorical1
Teorical1
Ever Blut
RxJS - 封裝程式的藝術
RxJS - 封裝程式的藝術
名辰 洪
applet.docx
applet.docx
nofakeNews
Lecture 4
Lecture 4
Mohammed Khan
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
aparnatiwari291
Java
Java
AdamZidan3
Weitere ähnliche Inhalte
Was ist angesagt?
Hashing enderecamento aberto bean - bean
Hashing enderecamento aberto bean - bean
Elaine Cecília Gatto
PyCon lightning talk on my Toro module for Tornado
PyCon lightning talk on my Toro module for Tornado
emptysquare
Javascript Common Mistakes
Javascript Common Mistakes
동수 장
PHPUnit Myth
PHPUnit Myth
jameslabs
Formal methods Project Report for the support of slides uploaded
Formal methods Project Report for the support of slides uploaded
Shoaib Haseeb
New feature of async fakeAsync test in angular
New feature of async fakeAsync test in angular
Jia Li
Teorical 1
Teorical 1
everblut
Adding two integers in c
Adding two integers in c
Khuthbu Din
Transaction Management Tool
Transaction Management Tool
Peeyush Ranjan
{{components deepDive=true}}
{{components deepDive=true}}
raytiley
Orsiso
Orsiso
e27
Andrii Orlov "Generators Flexibility in Modern Code"
Andrii Orlov "Generators Flexibility in Modern Code"
LogeekNightUkraine
Unbounded
Unbounded
Ever Blut
Unbounded
Unbounded
Ever Blut
Theorical 1
Theorical 1
everblut
Rust
Rust
Chih-Hsuan Kuo
Teorical1
Teorical1
Ever Blut
RxJS - 封裝程式的藝術
RxJS - 封裝程式的藝術
名辰 洪
applet.docx
applet.docx
nofakeNews
Lecture 4
Lecture 4
Mohammed Khan
Was ist angesagt?
(20)
Hashing enderecamento aberto bean - bean
Hashing enderecamento aberto bean - bean
PyCon lightning talk on my Toro module for Tornado
PyCon lightning talk on my Toro module for Tornado
Javascript Common Mistakes
Javascript Common Mistakes
PHPUnit Myth
PHPUnit Myth
Formal methods Project Report for the support of slides uploaded
Formal methods Project Report for the support of slides uploaded
New feature of async fakeAsync test in angular
New feature of async fakeAsync test in angular
Teorical 1
Teorical 1
Adding two integers in c
Adding two integers in c
Transaction Management Tool
Transaction Management Tool
{{components deepDive=true}}
{{components deepDive=true}}
Orsiso
Orsiso
Andrii Orlov "Generators Flexibility in Modern Code"
Andrii Orlov "Generators Flexibility in Modern Code"
Unbounded
Unbounded
Unbounded
Unbounded
Theorical 1
Theorical 1
Rust
Rust
Teorical1
Teorical1
RxJS - 封裝程式的藝術
RxJS - 封裝程式的藝術
applet.docx
applet.docx
Lecture 4
Lecture 4
Ähnlich wie Java Programs
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
aparnatiwari291
Java
Java
AdamZidan3
SumNumbers.java import java.util.Scanner;public class SumNumbe.pdf
SumNumbers.java import java.util.Scanner;public class SumNumbe.pdf
ankkitextailes
Write a Java ProgramSolutionAnswer- Code- import java-io--- import jav.docx
Write a Java ProgramSolutionAnswer- Code- import java-io--- import jav.docx
lez31palka
Lab01.pptx
Lab01.pptx
KimVeeL
Lab101.pptx
Lab101.pptx
KimVeeL
JAVA.Q4 Create a Time class. This class will represent a point in.pdf
JAVA.Q4 Create a Time class. This class will represent a point in.pdf
karymadelaneyrenne19
Java Language.....pdf
Java Language.....pdf
badshetoms
Create a C# applicationYou are to create a class object called “Em.pdf
Create a C# applicationYou are to create a class object called “Em.pdf
feelingspaldi
CODEimport java.util.; public class test { public static voi.pdf
CODEimport java.util.; public class test { public static voi.pdf
anurag1231
Oot practical
Oot practical
Vipin Rawat @ daya
JAVA Question : Programming Assignment
JAVA Question : Programming Assignment
Coding Assignment Help
import java.uti-WPS Office.docx
import java.uti-WPS Office.docx
Katecate1
Integration Project Inspection 3
Integration Project Inspection 3
Dillon Lee
07-Basic-Input-Output.ppt
07-Basic-Input-Output.ppt
Ajenkris Kungkung
2. Create a Java class called EmployeeMain within the same project Pr.docx
2. Create a Java class called EmployeeMain within the same project Pr.docx
ajoy21
Practice
Practice
Daman Toor
package employeeType.employee;public class Employee { private.pdf
package employeeType.employee;public class Employee { private.pdf
sharnapiyush773
In your Person classAdd a constant field to store the current yea.pdf
In your Person classAdd a constant field to store the current yea.pdf
arihanthtextiles
Ähnlich wie Java Programs
(19)
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
The solution is as belowEmployeeDemo.javaimport java.util.Scann.pdf
Java
Java
SumNumbers.java import java.util.Scanner;public class SumNumbe.pdf
SumNumbers.java import java.util.Scanner;public class SumNumbe.pdf
Write a Java ProgramSolutionAnswer- Code- import java-io--- import jav.docx
Write a Java ProgramSolutionAnswer- Code- import java-io--- import jav.docx
Lab01.pptx
Lab01.pptx
Lab101.pptx
Lab101.pptx
JAVA.Q4 Create a Time class. This class will represent a point in.pdf
JAVA.Q4 Create a Time class. This class will represent a point in.pdf
Java Language.....pdf
Java Language.....pdf
Create a C# applicationYou are to create a class object called “Em.pdf
Create a C# applicationYou are to create a class object called “Em.pdf
CODEimport java.util.; public class test { public static voi.pdf
CODEimport java.util.; public class test { public static voi.pdf
Oot practical
Oot practical
JAVA Question : Programming Assignment
JAVA Question : Programming Assignment
import java.uti-WPS Office.docx
import java.uti-WPS Office.docx
Integration Project Inspection 3
Integration Project Inspection 3
07-Basic-Input-Output.ppt
07-Basic-Input-Output.ppt
2. Create a Java class called EmployeeMain within the same project Pr.docx
2. Create a Java class called EmployeeMain within the same project Pr.docx
Practice
Practice
package employeeType.employee;public class Employee { private.pdf
package employeeType.employee;public class Employee { private.pdf
In your Person classAdd a constant field to store the current yea.pdf
In your Person classAdd a constant field to store the current yea.pdf
Kürzlich hochgeladen
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
RagavanV2
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
JIT KUMAR GUPTA
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
Thermal Engineering Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
DineshKumar4165
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
tanu pandey
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
Epec Engineered Technologies
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
Morshed Ahmed Rahath
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
roncy bisnoi
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
Arindam Chakraborty, Ph.D., P.E. (CA, TX)
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
RagavanV2
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
Call Girls in Nagpur High Profile Call Girls
Hostel management system project report..pdf
Hostel management system project report..pdf
Kamal Acharya
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
RishantSharmaFr
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
BhangaleSonal
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
soginsider
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
9953056974 Low Rate Call Girls In Saket, Delhi NCR
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Arindam Chakraborty, Ph.D., P.E. (CA, TX)
Kürzlich hochgeladen
(20)
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Thermal Engineering Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
Hostel management system project report..pdf
Hostel management system project report..pdf
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Java Programs
1.
importjava.util.Scanner; publicclassEmployee { int emoId; StringempName; StringempType; SalaryempSalary; Employee(intemployeeid,Stringemployeename,StringempType) { this.emoId=employeeid; this.empName=employeename; this.empType=empType; } publicvoiddisplayempInfo() { empSalary=new
Salary(); System.out.println("EnterNumberof Days:"); Scannersc=newScanner(System.in); empSalary.setDay(sc.nextInt()); System.out.println("EnterNumberof Hours:"); empSalary.setHour(sc.nextInt()); System.out.println("EnterNumberof OffDays:"); empSalary.setOffdays(sc.nextInt());
2.
intTotalHoursAmount=empSalary.Calculatehourly(); intTotalDailyAmount=empSalary.CalculateDaily(); intTotalPermanentAmount=empSalary.CalculatePermanent(); intBalanceAmount=(TotalDailyAmount+TotalHoursAmount)-(empSalary.getOffdays()*120); System.out.println("Employee Name:"+this.empName); System.out.println("Employee Type:"+this.empType); System.out.println("Employee
Salary:$"+(TotalPermanentAmount-BalanceAmount)); } publicstaticvoidmain(String[] args) { Employee emp=new Employee(10,"Sriram","Perminent"); emp.displayempInfo(); } } importjava.io.*; importjava.io.FileInputStream; publicclassMyDictionary { publicintcountCharacters(FilemyFile)
3.
{ int charCount=
0; Stringdata; try{ FileInputStreamfStrm=newFileInputStream(myFile); InputStreamReaderfData=newInputStreamReader(fStrm); BufferedReaderbReadLine =newBufferedReader(fData); while((data=bReadLine.readLine()) !=null) { charCount+= data.length(); } }catch(Exceptionex){ ex.printStackTrace();}returncharCount; } publicintcountWords(FilemyFile) { intwordCount= 0; Stringdata; try{ FileInputStreamfStrm=newFileInputStream(myFile); InputStreamReaderfData= newInputStreamReader(fStrm); BufferedReaderbReadLine=newBufferedReader(fData); while((data=bReadLine.readLine()) !=null) { String[] wordList=data.split("s+");
4.
wordCount+=wordList.length; } }catch(Exceptionex){ ex.printStackTrace();}returnwordCount; } publicintcountVowels(FilemyFile) { intvowelCount=0; try{ String[]
Numberofwords=null; FileReaderfr= newFileReader(myFile); BufferedReaderbr= newBufferedReader(fr); Stringdata; int fcount=0; while((data=br.readLine())!=null) { Numberofwords=data.split(""); for(inti=0;i<Numberofwords.length;i++) { for(intj=0;j<Numberofwords[i].length();j++) { char character=Numberofwords[i].charAt(j); if(character== 'a' || character == 'e' ||character == 'i' ||character == 'o' || character == 'u')
5.
{ fcount=1; } } if(fcount==1) { vowelCount++; } fcount=0; } } }catch(Exceptionex){ ex.printStackTrace();}
returnvowelCount; } publicbooleansearchWord(File myFile,StringmyWord) { boolean result=false; try{ String[] Numberofwords=null; FileReaderfr= newFileReader(myFile); BufferedReaderbr= newBufferedReader(fr); Stringdata; Stringinput=myWord; intwordCount=0; while((data=br.readLine())!=null)
6.
{ Numberofwords=data.split(""); for (Stringword: Numberofwords) { if
(word.equals(input)) { wordCount++; } } } if(wordCount!=0) { result=true; } else { result=false; } }catch(Exceptionex){ex.printStackTrace();} returnresult; } publicFile openMyFile(StringfName) { File file =newFile(fName);
7.
returnfile; } publicvoidcloseFile(File myFile) { try{ FileReaderfrClose =newFileReader(myFile); frClose.close(); }catch(Exceptionex){ex.printStackTrace();} } } publicclassSalary{ private
staticinthour; private staticint day; private staticint Offdays; publicintgetHour() { returnhour; } public voidsetHour(inthour) { this.hour= hour; }
8.
publicintgetDay() { returnday; } publicvoidsetDay(intday) { this.day=day; } public
intgetOffdays(){ returnOffdays; } publicvoidsetOffdays(intOffdays){ this.Offdays=Offdays; } publicintCalculatehourly() { inthourlyAmount=32; inttotalAmount=this.hour*hourlyAmount; returntotalAmount; } publicintCalculateDaily() { intdailyAmount=180; inttotalAmount=this.day*dailyAmount;
9.
returntotalAmount; } publicintCalculatePermanent() { intperminentAmount=4200; returnperminentAmount; } }
Jetzt herunterladen