Hello.
What do you mean by java command?
You mean you are invoking getPlotNo() method on the object arrayRecords[y]?

If you want to do that then your task shall be more easier if you...