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); } }
Math Function using Java



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.
In this tutorials will teach you how to do the validation in Spring boot.this tutorials continue from the last article if you are not read in the last article please read and come here . it is checking the employee id is already exists or not. if it is exists display the warning message as “Employee ID Already Exists” …
In this tutorials will teach you how to do the Restful API to add the records in to the mysql database.how to insert the records into mysql database step by step via spring boot layer architecture process using industrial standards.
this tutorials will help you to create the DTO. First you have have to create the class EmployeeDTO.java package com.springschool.firstapp.dto; import org.hibernate.annotations.Type; import javax.persistence.Column; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import java.util.ArrayList; public class EmployeeDTO { private int customerId; private String customerName; private String customerAddress; private double customerSalary; private ArrayList contactNumbers; private String nic; private boolean activeState; public EmployeeDTO() { …