阅读背景:

Java - 搜索数组中等于给定数字的所有元素索引

来源:互联网 

I have method searchSales() which is supposed to find all sales figures which are equal to the given sales figure.The application asks the user to enter the given sales figure using the keyboard and searches for it. If sales figure entered from the keyboard is found then the application displays sales figure/figures otherwise it displays an appropriate message. Well, i have a code which displays only first index of equal sales figure, for example: array has elements 1,2,3,3,4,5 and I want to find all indexes of [array] = 3. How can I do this?I have method searchSales() which is supposed t




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: