[Java]NullPointerException()のサンプル
書式
throw new NullPointerException()
使用例
static public void deleteUserGroup(Connection conn, String userid) throws SQLException { if (conn == null || id == null) { throw new NullPointerException(); } //some code }
Coding Changes the World
書式
throw new NullPointerException()
使用例
static public void deleteUserGroup(Connection conn, String userid) throws SQLException { if (conn == null || id == null) { throw new NullPointerException(); } //some code }