Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

Salary example in method in java

import java.util.Scanner;
public class Main{
    public staic void main(String[] args){
        Scanner sc = new Scanner(System.in);
        Employee emp = new Employee();

        System.out.println("Enter Id:"+setEmployeeId(sc.nextInt()))
        System.out.println("Enter Name:"+setEmployeeName(sc.next()));
        System.out.println("Enter salary:"+setSalary(sc.nextDouble()));

        System.out.println("Enter PF percentage:");
        double pfpercentage = sc.nextDouble();

        public static Employee getEmployeeDetails(){


        }

        public static int getPFPercentage(){

        }

    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: arrays with for loops 
Java :: the import junit cannot be resolved maven 
Java :: how to print array in one line in java 
Java :: find first and last position of element in sorted array 
Java :: Java Access superclass attribute 
Java :: encode file to utf-8 in java 
Java :: java parameterized constructor 
Java :: stringbuilder in java 
Java :: Syntax of Creating Java Map Objects 
Java :: java garbage collection 
Java :: get selected item spinner 
Java :: Java Creating a HashSet 
Java :: java creating an arraylist 
Java :: implement queue using array in java 
Java :: How to solve the knapsack problem, in Java? 
Java :: import in java 
Java :: java constructor example 
Java :: private method in interface java 
Java :: generics Interface in java 
Java :: nested class in java 8 
Java :: Java Handlers(Appenders) 
Java :: jenkins password decrypt online 
Java :: intellij error for new project 
Java :: foreach() java 
Java :: rotate vector 3d java 
Java :: Kadane Algorithm for maximum sub-array 
Java :: jframe circles in java 
Java :: What is Java? 
Java :: convert array to phone number java 
Java :: Iterating an Array Using While Loop 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =