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


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

Re: Casting from Object to int

Newsgroups comp.lang.java.help
Date 2013-04-24 13:47 -0700
References <476a558a$1_1@filemon1.isp.telecable.es>
Message-ID <657a1ab4-18e7-4e7a-957d-dd3da2969b2a@googlegroups.com> (permalink)
Subject Re: Casting from Object to int
From iolamide@lakeheadu.ca

Show all headers | 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