create a 3 element integer to calculate and following min numbers max numbers total average
create a 3 element integer to calculate and following min numbers max numbers total average
Create a 10 element integer array and store some integer values display as the counting of 0. public class JavaEx { public static void main(String args[]) { int numbers[] = {10,15,0,0,6,0,0,1,6,4}; int x,count,len; count = 0; len = numbers.length; for(x= 0; x < len; x++) { if(numbers[x]==0) { System.out.println(numbers[x]); count++; } } System.out.println(count); } } above examples int numbers[] = …
in this tutorials you will be learning DataInputStream using Java.input the integer number and float number and press enter key then show output as readable integer number and float number. import java.io.DataInputStream; public class JavaEx { public static void main(String args[]) { DataInputStream in = new DataInputStream(System.in); int Intnum = 0; float Floatnum = 0.0f; try { System.out.println("Enter the Integer"); …
Assume that we have to compute and print the square root of the number. public class JavaEx { public static void main(String args[]) { double a = 10; double b; b = Math.sqrt(a); System.out.println("b " + b); } }
Input the Student name,marks for 3 subjects,calculate the avg,grade. In order to calculate the grade using following conditions.
input employee number,hourly rate calculate and display the gross payment using following condition. if the employee work more than 40 hours then he will be paid the hours work over 40 at the rate of two times than the normal rate others get the normal payment.
Input the employee name and basic salary calculate and display the netsalary using following condition if the basic salary is more than 50000 then include 10% Tax if the basic salary is more than 30000 then include 5% Tax otherwise no Tax.
this tutorial on java we are going to teach the advanced student grading system using following condition
this tutorial will teach you write the java program to calculate and display student grade system.i have written the simple example . Input the Student name,marks for 3 subjects,calculate the avg,grade. In order to calculate the grade using following conditions. if the average is greater than 50 awarded as “Pass” Other wise “Fail”
In this tutorials will teach you @AllArgsConstructor and @NoArgsConstructor @Data annotations.what is the purpose we use this annotations is if we have a class it has Argument Constructor and No Argument Constructor and Getter and Setters and String Method. instead of implementing all of these.