Untitled

mail@pastecode.io avatar
unknown
plain_text
3 years ago
598 B
2
Indexable
Never
public void xeptheotenaz() {
	try {
		if (qlnv.list.length != 0) {
			for (int i = 0; i < qlnv.list.length - 1; i++) {
				for (int j = i + 1; j < qlnv.list.length; j++) {
					if (qlnv.list[i].getHoTen().compareToIgnoreCase(qlnv.list[j].getHoTen()) > 0) {
						swap(qlnv.list, i, j);
					}

				}
			}
			quanlynhanvien nv = new quanlynhanvien();
			
			nv.xuat();
		} else {
			System.out.println(" => Danh sách ko có nhân viên");
		}}
	catch (NullPointerException e) {
		System.out.println(" Lỗi nullpointer");
	}
	catch (Exception e) {
		System.out.println("Có lỗi gì đó ");
	}
	}