Results 1 to 2 of 2
Thread: fetch method
- 02-18-2013, 09:00 PM #1
Member
- Join Date
- Feb 2013
- Posts
- 6
- Rep Power
- 0
fetch method
I have a data Structure called UOAUtilities and this is the method.
My question is, how can I fetch a studentlisting which holds string,int,float with just a string?Java Code:public StudentListings fetch (String targetKey) { StudentListings StudentListings; StudentListings temp; int i=0; while(i < next && !(data[i].compareTo(targetKey) == 0)) { i++; } if(i == next) return null; StudentListings = data[i].deepCopy(); if (i!=0) { temp = data[i - 1]; data[i - 1] = data[i]; data[i] = temp; } return StudentListings; }
- 02-19-2013, 09:46 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Similar Threads
-
Fetch Source Code
By ujjwal in forum New To JavaReplies: 7Last Post: 02-08-2011, 04:22 PM -
hibernate association fetch
By enggvijaysingh@gmail.com in forum Advanced JavaReplies: 1Last Post: 12-03-2010, 09:30 PM -
Fetch files over web server
By Juuno in forum NetworkingReplies: 3Last Post: 02-19-2009, 02:02 PM -
Fetch Webpage - not working
By jodyflorian in forum New To JavaReplies: 5Last Post: 10-10-2008, 02:49 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks