• 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
Java help - adding int to integer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Java help - adding int to integer


  • Subject: Java help - adding int to integer
  • From: Amorya North <email@hidden>
  • Date: Sat, 11 Sep 2004 13:50:48 +0100

My statement:

nextPage.chapterToEdit.setNumber(((Integer)(foreachFic.valueForKeyPath("
email@hiddenr"))+1));


The error is: "Operator + cannot be applied to java.lang.Integer, int"


If I make the 1 into an Integer, it says the same but
"java.lang.Integer, java.lang.Integer"


Is it 'cos I have a key called number? or am I making some crazy java
error?


Amorya
_______________________________________________
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.


  • Prev by Date: Re: Assistant in Direct to Java
  • Next by Date: Re: Java help - adding int to integer
  • Previous by thread: Meetings in Atlanta, GA...
  • Next by thread: Re: Java help - adding int to integer
  • Index(es):
    • Date
    • Thread