🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #1315

[JAVA] - prioriteitsregels

#1315
From: alias
Date: Mon, 16 May 2005 15:33
77 lines
3927 bytes
This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C55A3C.B4A6E020
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Haakjes hebben toch de hoogste prioriteit.
Waarom krijg ik dan toch 2 verschillende resultaten=20
voor 'dezelfde' bewerking ? Blijkbaar wordt bij a)
de eerste term toch ge=EBvalueerd naar 10 ipv eerst de tweede
term tussen haakjes uit te werken.=20

  int x =3D 10;

  a)    x =3D x + (x =3D 3);    -> resultaat x =3D 13;

  b)    x =3D (x =3D 3) + x;    -> resultaat x =3D 6;

Iemand een antwoord ?=20

Bedankt !=20



------=_NextPart_000_000E_01C55A3C.B4A6E020
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1476" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DFixedsys size=3D1>Haakjes hebben toch de hoogste=20
prioriteit.</FONT></DIV>
<DIV><FONT face=3DFixedsys size=3D1>Waarom krijg ik dan toch 2 =
verschillende=20
</FONT><FONT face=3DFixedsys size=3D1>resultaten&nbsp;</FONT></DIV>
<DIV><FONT face=3DFixedsys size=3D1>voor 'dezelfde'&nbsp;bewerking ? =
Blijkbaar wordt=20
bij a)</FONT></DIV>
<DIV><FONT face=3DFixedsys size=3D1>de eerste term toch ge=EBvalueerd =
naar 10&nbsp;ipv=20
eerst&nbsp;de tweede</FONT></DIV>
<DIV><FONT face=3DFixedsys size=3D1>term tussen haakjes uit te=20
werken.&nbsp;</FONT></DIV>
<DIV><FONT face=3DFixedsys size=3D1></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV><FONT face=3DFixedsys size=3D1>int x =3D 10;</FONT></DIV>
  <DIV><FONT face=3DFixedsys size=3D1></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DFixedsys size=3D1>a)&nbsp;&nbsp;&nbsp; x =3D x + (x =
=3D=20
  3);&nbsp;&nbsp;&nbsp; -</FONT><FONT face=3DFixedsys =
size=3D1>&gt;&nbsp;resultaat x=20
  =3D 13;</FONT></DIV>
  <DIV><FONT face=3DFixedsys size=3D1></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DFixedsys size=3D1>b)&nbsp;&nbsp;&nbsp; x&nbsp;=3D (x =
=3D 3) +=20
  x;&nbsp;&nbsp;&nbsp; -&gt; </FONT><FONT face=3DFixedsys =
size=3D1>resultaat x =3D=20
  6;</FONT></DIV>
  <DIV><FONT face=3DFixedsys size=3D1></FONT>&nbsp;</DIV></BLOCKQUOTE>
<DIV dir=3Dltr><FONT face=3DFixedsys size=3D2>Iemand een antwoord ? =
</FONT></DIV>
<DIV dir=3Dltr><FONT face=3DFixedsys size=3D2></FONT>&nbsp;</DIV>
<DIV dir=3Dltr><FONT face=3DFixedsys size=3D2>Bedankt ! </FONT></DIV>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
  <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BLOCKQUOTE>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_000E_01C55A3C.B4A6E020--
Technical Details
Message-ID: <%23ie.92671$T43.5527669@phobos.telenet-ops.be>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!hwmnpeer01.lga!hwmedia!hwmnpeer01.ams!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: fcea4,e26a41e9fbbcdb9b,start
X-Google-Attributes: gidfcea4,public
X-Google-Language: DUTCH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!hwmnpeer01.lga!hwmedia!hwmnpeer01.ams!nntp.telenet.be!kwabbernoot.telenet-ops.be!phobos.telenet-ops.be.POSTED!not-for-mail
From: "alias" <demonio_delfuego@hotmail.com>
Newsgroups: be.comp.programming
Subject: [JAVA] -  prioriteitsregels 
Lines: 78
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----=_NextPart_000_000E_01C55A3C.B4A6E020"
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
Message-ID: <%23ie.92671$T43.5527669@phobos.telenet-ops.be>
Date: Mon, 16 May 2005 15:33:15 GMT
NNTP-Posting-Host: 213.119.102.35
X-Complaints-To: abuse@telenet.be
X-Trace: phobos.telenet-ops.be 1116257595 213.119.102.35 (Mon, 16 May 2005 17:33:15 MEST)
NNTP-Posting-Date: Mon, 16 May 2005 17:33:15 MEST
Organization: Telenet Internet