Hi ,
I need to convert an int to a
String.
I try this:
Cabin cab = home.findByPrimaryKey(pk);
if((cab.getShip()== shipID) && (cab.getBedCount()== bedCount))
String dl = Integer.toString(cab.getDeckLevel());
v.add(dl);
Compiler compplains this isn't a statement.
When I replace cab.getDeckLevel()with an int it works fine.
The getDeckLevel method goes like this:
public int deckLevel;
public int getDeckLevel() {
return deckLevel;
}
would someone have any suggestions?