Article View: es.comp.lenguajes.java
Article #17028Re: la constante MAX_VALUE
From: xantch
Date: Sun, 10 Dec 2000 10:49
Date: Sun, 10 Dec 2000 10:49
59 lines
3112 bytes
3112 bytes
This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C0629F.49813320 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Ya me contesto yo mismo MAX_VALUE es un atributo de la clase lang/java en concreto de la clase Integer y por tanto hay que acceder a ella anteponiendo al atributo la clase a la que pertenece, por lo=20 tanto es de la siguiente manera: int mayorentero=3DInteger.MAX_VALUE ; int menorentero=3DInteger.MIN_VALUE; Gracias a todos xantch escribi=F3 en mensaje ... >Hola quisiera saber como introducir >la constante MAX_VALUE DE >java/lang en una variable b=E1sica int. >=BFtan dificil hace esto java? > > ------=_NextPart_000_000B_01C0629F.49813320 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN"> <HTML> <HEAD> <META content=3Dtext/html;charset=3Diso-8859-1 = http-equiv=3DContent-Type> <META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR> </HEAD> <BODY> <DIV>Ya me contesto yo mismo</DIV> <DIV>MAX_VALUE es un atributo de la clase lang/java</DIV> <DIV>en concreto de la clase Integer y por tanto hay que acceder</DIV> <DIV>a ella anteponiendo al atributo la clase a la que pertenece, por lo = </DIV> <DIV>tanto es de la siguiente manera:</DIV> <DIV> </DIV> <DIV><STRONG>int mayorentero=3DInteger.MAX_VALUE ;</STRONG></DIV> <DIV><STRONG>int menorentero=3DInteger.MIN_VALUE;</STRONG></DIV> <DIV> </DIV> <DIV><FONT color=3D#000000 size=3D2>Gracias a todos</FONT></DIV> <DIV>xantch<XANTCH@LETTERA.NET> escribió en=20 mensaje<ZFUY5.794$E1.12290@M2NEWSREAD.UNI2.ES> ...</DIV>>Hola = quisiera saber=20 como introducir<BR>>la constante MAX_VALUE DE<BR>>java/lang en una = variable básica int.<BR>>¿tan dificil hace esto=20 java?<BR>><BR>></BODY></HTML> ------=_NextPart_000_000B_01C0629F.49813320--
Technical Details
Message-ID:
<JcJY5.55$17.2356@m2newsread.uni2.es>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!195.25.12.36.MISMATCH!oleane.net!oleane!news.maxwell.syr.edu!newsfeed.skycache.com!Cidera!newsfeed.comtenidos.com!m2newsfeed.uni2.es!m2newsread.uni2.es.POSTED!not-for-mailReferences:
<zfuY5.794$E1.12290@m2newsread.uni2.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: 1116f3,24a4a23d2375f785 X-Google-Attributes: gid1116f3,public X-Google-ArrivalTime: 2000-12-10 02:49:26 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!195.25.12.36.MISMATCH!oleane.net!oleane!news.maxwell.syr.edu!newsfeed.skycache.com!Cidera!newsfeed.comtenidos.com!m2newsfeed.uni2.es!m2newsread.uni2.es.POSTED!not-for-mail From: "xantch" <xantch@lettera.net> Newsgroups: es.comp.lenguajes.java References: <zfuY5.794$E1.12290@m2newsread.uni2.es> Subject: Re: la constante MAX_VALUE Lines: 60 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_000B_01C0629F.49813320" X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Message-ID: <JcJY5.55$17.2356@m2newsread.uni2.es> Date: Sun, 10 Dec 2000 10:49:13 GMT NNTP-Posting-Host: 62.83.76.181 X-Complaints-To: abuse@wanadoo.es X-Trace: m2newsread.uni2.es 976445353 62.83.76.181 (Sun, 10 Dec 2000 11:49:13 MET) NNTP-Posting-Date: Sun, 10 Dec 2000 11:49:13 MET Organization: Servidor Usenet News de Uni2/Wanadoo