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.
*
*/
How do I check what is in argv? I'm not familiar with this.
I'm assuming it checks if the database is already created or not. If its not created its -1. How would I check what is in argv and find when its -1?
argv is a String[] ?