[Corsopoc] Errore in BigliaSpecializzata oppure...

Andrea De Santis dsa@arealazio.com
Wed, 8 Jan 2003 23:37:22 +0100


This is a multi-part message in MIME format.

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

... oppure non c'ho capito un ciufolo come al solito? :)

Ho provato ad eseguire GiocoDiBiglie, ma il compilatore mi da errore =
nella classe BigliaSpecializzata:

BigliaSpecializzata.java [10:1] illegal start of expression
        private static final int deltaX =3D -2;
        ^
BigliaSpecializzata.java [12:1] illegal start of expression
        private static final int deltaY =3D -15;
        ^

Effettivamente, portando fuori dal costruttore di BigliaSpecializzata
la dischiarazione degli attributi deltaX e deltaY l'applicazione =
funziona correttamente.=20
In tal caso gli attributi divengono attributi di classe giusto???

Byez

------=_NextPart_000_0025_01C2B76E.E4464050
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.2722.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>... oppure non c'ho capito un ciufolo =
come al=20
solito? :)</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Ho provato ad eseguire GiocoDiBiglie, =
ma il=20
compilatore mi da errore nella classe BigliaSpecializzata:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>BigliaSpecializzata.java [10:1] illegal =
start of=20
expression<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private static =
final=20
int deltaX =3D -2;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
^<BR>BigliaSpecializzata.java [12:1] illegal start of=20
expression<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; private static =
final=20
int deltaY =3D -15;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
^<BR></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Effettivamente, portando fuori dal =
costruttore di=20
BigliaSpecializzata</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>la dischiarazione degli attributi =
deltaX e deltaY=20
l'applicazione funziona correttamente. </FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2>In tal caso gli attributi =
divengono attributi=20
di classe giusto???</FONT></FONT></DIV>
<DIV><FONT face=3DArial><FONT size=3D2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Byez</FONT></DIV></BODY></HTML>

------=_NextPart_000_0025_01C2B76E.E4464050--