Results 1 to 1 of 1
Thread: next and previous canot be same
- 12-15-2010, 01:05 AM #1
Member
- Join Date
- Apr 2010
- Posts
- 18
- Rep Power
- 0
next and previous canot be same
my logic here seems to be wrong. the same sequence for next and previous should not have the same station name. can anyone help me.. :confused:
eg: sequence 555-1, 555-2, 555-3, .....
if (getStation() != null) {
int Seq = getSequence().intValue() - 1;
String stationId = getStationMasterId(station.getId(), (Integer) new Integer(Seq));
if (stationId != null) {
if (getTerminal().getId().equals(stationId)) {
throw new StationMustDifferentWithNextCallException(null);
}
}
}
Similar Threads
-
How to get previous line rather than next?
By Cylab in forum New To JavaReplies: 5Last Post: 08-11-2010, 07:14 AM -
Next and Previous Buttons
By kbgriggs in forum New To JavaReplies: 2Last Post: 08-12-2009, 02:08 PM -
add previous jar library to new one
By Farzaneh in forum EclipseReplies: 1Last Post: 08-23-2008, 02:31 PM -
Using previous with CardLayout
By uncopywritable in forum New To JavaReplies: 2Last Post: 08-05-2007, 09:43 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks