Java help - adding int to integer
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.