single main in java, delete scala