티스토리 뷰

소스 코드


Main.java


package com.emp.main;

import java.util.Scanner;

import com.emp.service.Service;

// 메인 메뉴 운영 클래스
public class Main {
	// 직원 삭제, 패스워드 변경 만들기.
	public static void main(String[] args) {
	
		Scanner sc = new Scanner(System.in);
		
		boolean run = true;
		while(run) {
			System.out.println("--------------");
			System.out.println("직원관리 v2.0");
			System.out.println("--------------");
			System.out.println("1. 로그인");
			System.out.print("선택(0/1) > ");
			int selectNum = sc.nextInt();
			sc.nextLine();
			
			if(selectNum == 1) {
				new Service().login(sc);
			} else {
				run = false;
			}
		}
		sc.close();
		System.out.println("프로그램이 종료되었습니다.");
	}

}

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
글 보관함