Answer the question
In order to leave comments, you need to log in
How to get the size of a string array?
I am writing software for accounting for user equipment in a warehouse. Accounting should be kept in the database, but while there is no database, and you need to write further and test too, then I decided to write a class for random creation of user equipment objects.
I have a string array of data:
<string-array name="modelOfPersonalComputersStringArray">
<item>HP ProDesk 400 G5 MT </item>
<item>HP Compaq Elite 8300 CMT</item>
<item>HP EliteDesk 800 G2 SFF</item>
<item>HP Z6 G4 Workstation</item>
<item>HP ZBook 17 G3</item>
<item>HP EliteDesk 800 G2 SFF</item>
</string-array>
String [] tempArray = context.getResources().getStringArray(R.array.modelOfPersonalComputersStringArray);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question