Skip to content

1. A simple table displaying data

Exercise#1 with tables – A simple table displaying data.

Write the Java classes and .xhtml required to represent a collection of Employees and display them in a table as shown below. Each Employee has attributes name, department, age and salary.

DataTable Example
Name Department Age Salaray
John Marketing 30 2000.0
Robert Marketing 35 3000.0
Mark Sales 25 2500.0