Instead of having six variables f1, f2, f3, ..., f6 you could create an array.
Have a look at:
The Java Tutorials - Arrays.
For example:
Access the six elements of the array as f[0], f[1], f[2], ..., f[5]. Ofcourse you can use a variable to index into the array: