Professional Documents
Culture Documents
20BCS8011 Worksheet 1 Project Based Learning in Java Lab
20BCS8011 Worksheet 1 Project Based Learning in Java Lab
Worksheet No .1
Aim: Given the following table containing information about employees of an organization, develop a small
java application, which accepts employee id from the command prompt and displays the following details as
output
Code:
package project1;
import java.util.Scanner;
public class Array
{
public static void main(String args[])
{
Scanner arr = new Scanner(System.in);
int capacity = 7;
Output: