On Fri, 30 Aug 2002 12:54:56 +0200, Thomas Saxtoft wrote:
> Jeg faldt lige over noget jeg ikke har set før i java. Det er
> operatorene << og >>. Hvad betyder de?
>
> Thomas
Hej Thomas
Det er shift operatorer. Klippet fra Java Language Specifications:
15.19 Shift Operators
The shift operators include left shift <<, signed right shift >>, and
unsigned right shift >>> ; they are syntactically left-associative (they
group left-to-right). The left-hand operand of a shift operator is the
value to be shifted; the right-hand operand specifies the shift distance.
Se mere på
http://java.sun.com/docs/books/jls/second_edition/html/expressions.doc.html#5121
--
Mikkel Bundgaard
Student at IT University of Copenhagen
http://officehelp.gone.dk
Codito, Ergo Sum