public static void main(String[] argv) {
Connection connection = DatabaseDriverExtender.connectOrCreateDataBase();
if (connection == null) {
System.out.print("NOOO");
}
try {
//TODO Check what is in argv
//If it is -1
/*
* TODO This is for the first run only!
* Add this code:
* DatabaseDriverExtender.initialize(connection);
* Then add code to create your first account, an administrator with a password
* Once this is done, create an employee account as well.
*
*/
argv에 무엇이 있는지 어떻게 확인합니까? 나는 이것에 익숙하지 않다.argv에 무엇이 있습니까?
데이터베이스가 이미 생성되었는지 여부를 확인한다고 가정합니다. 그것의 -1 생성하지 않은 경우. argv에있는 내용을 확인하고 -1을 발견하면 어떻게됩니까?
argv가 문자열 []입니까?
가 왜? – Dabiuteef
주 함수에서 argv는 명령 줄에서 전달 된 인수 배열입니다. –
@Dabiuteef 그런 식으로하려고합니다. -1이 먼저 실행됩니다. 나는 단지 어떻게 해야할지 모르겠다. –