Java: getting a value from an array from a defined location

前端 未结 3 499
死守一世寂寞
死守一世寂寞 2020-12-12 08:17

I have an array of numbers and would like to retrieve one of the values from location \"index\". I\'ve looked at the Java documentation http://java.sun.com/j2se/1.5.0/docs/a

3条回答
  •  鱼传尺愫
    2020-12-12 08:40

    I think you're just looking for:

     Point vertex = vertices[index];
    

    At least - if you're not looking for that, please expand on what the difference is between using the array index and what you do want :)

提交回复
热议问题