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

}

[583 byte] By [-cobra.code-a] at [2007-11-27 4:33:49]
# 1
&& Do I win ?
georgemca at 2007-7-12 9:43:42 > top of Java-index,Java Essentials,New To Java...
# 2

Wow... it seems so obvious I should have thought of that... but I didn't, so.. Points me += -1.

lol and sorry man i'm broke, but if you send you'r name, phone number and account information to the north pole, you'll have it by xmas or it'll be doubled on boxing day!

:P thanks again!!

-cobra.code-a at 2007-7-12 9:43:42 > top of Java-index,Java Essentials,New To Java...
# 3
> .... Points me += -1.Points to you -= 1
akimotoa at 2007-7-12 9:43:42 > top of Java-index,Java Essentials,New To Java...
# 4
> > .... Points me += -1.> > > Points to you -= 1you.points--
georgemca at 2007-7-12 9:43:42 > top of Java-index,Java Essentials,New To Java...
# 5
> > > .... Points me += -1.> > > > > > Points to you -= 1> > you.points--What's your point?
akimotoa at 2007-7-12 9:43:42 > top of Java-index,Java Essentials,New To Java...
# 6
> > > > .... Points me += -1.> > > > > > > > > Points to you -= 1> > > > you.points--> > What's your point?one more than his
georgemca at 2007-7-12 9:43:42 > top of Java-index,Java Essentials,New To Java...
# 7

> > > > > .... Points me += -1.

> > > >

> > > >

> > > > Points to you -= 1

> > >

> > > you.points--

> >

> > What's your point?

>

> one more than his

Good point!

akimotoa at 2007-7-12 9:43:42 > top of Java-index,Java Essentials,New To Java...