• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 322
  • Last Modified:

INDEXES

how to create indexes in Java?
0
new_foxpro
Asked:
new_foxpro
  • 2
1 Solution
 
sudhakar_koundinyaCommented:
what do you mean by index here??
0
 
CEHJCommented:
statement.executeUpdate("create index x on mytable(someColumn) ");
0
 
ashok3sepCommented:
The java.util.List interface provides an ordered collection that allows you to access its elements by index.
So any class that implements this interface would allow you to access its elements by index.


For example

List myList = new ArrayList();
myList.add("Item 1");
myList.add("Item 2");
String firstItem = (String)myList.get(0); // returns the 1st item

regards,

Freedom
0
 
CEHJCommented:
:-)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now