I have written this
public static void setIsolationLevel(Isolev level) {
try{
switch(level){
case READ_UNCOMMITTED;
conn.setTransactionIsolation(Connection.TRANSACTION_READ_UNCOMMITTED);
break;
}
}catch (SQLException e){
throw new ServiceException(e.getMessage());
}
}
But it doesn’t compile. It says it is missing a :. What is the problem? I have tried to put “:” every where.
Your problem is that you have
with a semicolon. You need a colon