[How to I fix this code?
![220 221 int numRef = Integer.parseInt(line.charAt (2 ) +); output _ Refrigerator # +n unRef+ is empty?: +1īstRefs[nunRef].is-empty(); 223](https://media.cheggcdn.com/media%2Fa89%2Fa89ee6b6-486b-446c-ae58-08ef71302c29%2Fphp40lzsp.png)
I’m getting the following error:
Exception in thread “main”java.lang.ArrayIndexOutOfBoundsException: 7
at refrigerator.Refrigerator.main(Refrigerator.java:222)
220 221 int numRef = Integer.parseInt(line.charAt (2 ) +””); output _ “Refrigerator #” +n unRef+” is empty?: “+1īstRefs[nunRef].is-empty(); 223 Show transcribed image text
Expert Answer
An answer will be send to you shortly. . . . .