Skip to content

AccountNumberOfEmployeesComparator

pozil edited this page Nov 14, 2024 · 3 revisions

AccountNumberOfEmployeesComparator Class

An example implementation of the Comparator Interface In this example we show how to sort all the accounts by their employee numbers in ascending order

Implements

Comparator<Account>

Methods

compare(a1, a2)

Signature

public Integer compare(Account a1, Account a2)

Parameters

Name Type Description
a1 Account
a2 Account

Return Type

Integer

Clone this wiki locally