Problem 5.101. Rework problem4.101. This time DO NOT use a method. Use an array thatreplaces the g1 through g6 primitive variables with a single intarray. Use a for loop in main() to accomplish thisand simplify the original Java class as you did in problem4.101.