//function to populate arrays
//NB whilst the data is hard coded in this example, in real life scenarios the data would be imported from a file or data base.
String[] populateArrays(){
arraySize = 13; //there are 13 various major govt. sectors
string[] govtSector = new string[arraySize]; // this will hold the separate govt sectors
int[] budget = new int[arraySize]; // this will hold their budgets
string[] govtSector = {'General Public Services ', 'Public Order and Safety ', 'Education ', ' Health ', 'Social Security and Welfare ',
'Housing and Community Amenities ', 'Recreation and Culture ', 'Fuel and Energy ', 'Agriculture, Forestry, Fishing and Hunting ',
'Mining and Mineral Resources other than fuels ', 'Transport and Communications ', 'Other Economic Affairs ', 'Other Purposes '};
int[] budget = {'408','1752','4364','5618','1437','1275','421','74','213','73','1219','390','766'};
return govtSector;
// return budget;
}//end populateArrays
populateArrays();
the second issue is related to the first, as I cannot get either array govtSector[] or budget[] to return from the function.