• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Integer vs. Number vs int
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Integer vs. Number vs int


  • Subject: Integer vs. Number vs int
  • From: Drew Thoeni <email@hidden>
  • Date: Thu, 27 Nov 2003 06:08:51 -0500

I am trying to put a numeric value into an Number object using:

public Number tempNum = 1;

But I get "incompatible types" on compile.

I'm new to Java but this seems analogous to the Java

public String tempString = "abc";

Which compiles fine.

I get the same "incompatible types" with:

public Integer tempNum = 1;

What am I missing?

Drew
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Integer vs. Number vs int
      • From: Ricardo Strausz <email@hidden>
    • Re: Integer vs. Number vs int
      • From: email@hidden
    • Re: Integer vs. Number vs int
      • From: Michael Halliday <email@hidden>
  • Prev by Date: Reportmill and WO with Xcode?
  • Next by Date: Re: Newbie question:progress bar
  • Previous by thread: Reportmill and WO with Xcode?
  • Next by thread: Re: Integer vs. Number vs int
  • Index(es):
    • Date
    • Thread