Created
March 27, 2018 11:48
-
-
Save Buravo46/0b21c083279836564866dbe31458f9e0 to your computer and use it in GitHub Desktop.
【Java】ユーティリティクラス
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Buravo on 2017/02/27. | |
*/ | |
public class Util { | |
private Util() {} | |
public static String GetParameter(String[] args, String param) { | |
for(int i = 0; i <= args.length; i++){ | |
if(args[i].equals(param)){ | |
return args[i++]; | |
} | |
} | |
return "not support parameter : " + param; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment