quick and easy question for selection structures
i'm new to java since I started an online course at school, and I was wondering if there was an 'and' conjuctive? i want to have a selection condition where two criteria must be met as opposed to using || where either one triggers a statement.
the assigment is about using client programs. i want a dog to interect a certain way when it is aggressive AND hungry
ex:
if (dog1.getAgression () > 5 'AND' dog1.getHunger () > 5)
{
// dog is hungry and territorial
System.out.pritnln (dog1.getName + ": ");
dog1.barkAngry
}

