Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #2689

Re: Casting from Object to int

X-Received by 10.224.160.65 with SMTP id m1mr25632251qax.2.1366836474470; Wed, 24 Apr 2013 13:47:54 -0700 (PDT)
X-Received by 10.49.108.229 with SMTP id hn5mr3370503qeb.14.1366836474343; Wed, 24 Apr 2013 13:47:54 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!gp5no5812385qab.0!news-out.google.com!ef9ni16888qab.0!nntp.google.com!gp5no5812376qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.lang.java.help
Date Wed, 24 Apr 2013 13:47:54 -0700 (PDT)
In-Reply-To <476a558a$1_1@filemon1.isp.telecable.es>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=174.5.48.28; posting-account=IQPssgoAAACnHly-Jk0q9w5tRfVr9aD-
NNTP-Posting-Host 174.5.48.28
References <476a558a$1_1@filemon1.isp.telecable.es>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <657a1ab4-18e7-4e7a-957d-dd3da2969b2a@googlegroups.com> (permalink)
Subject Re: Casting from Object to int
From iolamide@lakeheadu.ca
Injection-Date Wed, 24 Apr 2013 20:47:54 +0000
Content-Type text/plain; charset=ISO-8859-1
Xref csiph.com comp.lang.java.help:2689

Show key headers only | View raw


On Thursday, December 20, 2007 3:44:08 PM UTC+4, gaztedo wrote:
> Hi there!
> 
> I'm developing a method which receives two Object parameters, and I need 
> to cast one of them to int. How can I do it?
> 
> public method(Object a, Object b){
> 	this.b = (int)b; // doesn't work!
> 	this.a = a;
> }
> 
> Thanks in advance!

Back to comp.lang.java.help | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: Casting from Object to int iolamide@lakeheadu.ca - 2013-04-24 13:47 -0700
  Re: Casting from Object to int iolamide@lakeheadu.ca - 2013-04-24 13:50 -0700
    Re: Casting from Object to int Lew <lewbloch@gmail.com> - 2013-04-25 13:19 -0700

csiph-web