Having so much difficulty with Java at uni at the moment, basically I've gotta create a book library service kind of thing... One of the questions I have is,
staff user ids start with the three characters 'stf' all student user ids start with the three characters 'mcs'. Modify your code so that counts are taken of how many staff and how many students have borrowed this book.
now I'm really lost.. I have a field for usrID, which is the users ID and so far I've come up with
if (usrid.substring(0,3) = stf )
{
usrType = staff;
}
else
{
usrType = student
}
usrType is also another field....
its completely wrong and isnt compliling, can someone please point me to which bit is wrong?!
thanks a lot!!
staff user ids start with the three characters 'stf' all student user ids start with the three characters 'mcs'. Modify your code so that counts are taken of how many staff and how many students have borrowed this book.
now I'm really lost.. I have a field for usrID, which is the users ID and so far I've come up with
if (usrid.substring(0,3) = stf )
{
usrType = staff;
}
else
{
usrType = student
}
usrType is also another field....
its completely wrong and isnt compliling, can someone please point me to which bit is wrong?!
thanks a lot!!