I have a java class with a thousand line method of if/else logic like this:
if (userType == \"admin\") { if (age > 12) { if (location == \"
without more information there is no good answer
but fair guess would be this: use OO
first define a User, define Admin, Student and all other types of users and then let polymorphism take care of the rest