Difference between revisions of "Help:Contents"

From Robowiki
Jump to navigation Jump to search
(can't help today)
Line 6: Line 6:
 
I was hoping to find an easier way to find a data value in that object, stored in the array list.. I believe I could use lastIndexOf. But I can't seem to get the syntax right..  
 
I was hoping to find an easier way to find a data value in that object, stored in the array list.. I believe I could use lastIndexOf. But I can't seem to get the syntax right..  
  
ArrayList dataList;
+
//ArrayList dataList;
 
//..
 
//..
class Tanks{
+
//class Tanks{
 
   // enemy data
 
   // enemy data
  String name;
+
// String name;
  long scanTime;
+
// long scanTime;
}  
+
//}  
 
Thx for any help
 
Thx for any help
 
- justin
 
- justin
  
 
I'll try to answer this later in the week, unless someone beets me to it.  I am sick right now, and I'd probably provide some delusional code. -- Martin
 
I'll try to answer this later in the week, unless someone beets me to it.  I am sick right now, and I'd probably provide some delusional code. -- Martin

Revision as of 02:24, 27 February 2008

You are probably looking for the Help page from mediawiki.org. If you want somewhere to test wiki edits, try the Sandbox.

Hey Guys, i was hoping to ask for a little Java help. I hope here is an ok spot. I have a class Tanks, where I store data on tanks in an arrayList. I was hoping to find an easier way to find a data value in that object, stored in the array list.. I believe I could use lastIndexOf. But I can't seem to get the syntax right..

//ArrayList dataList; //.. //class Tanks{

 // enemy data
// String name;
// long scanTime;

//} Thx for any help - justin

I'll try to answer this later in the week, unless someone beets me to it. I am sick right now, and I'd probably provide some delusional code. -- Martin