hi, i have created an array, but i am still using it inefficiently. can anyone help me make this code more efficient?
I am basically reading in four characters at a time and writing them out in different order. I know there's gotta be a way to make this shorter, but my brain is frozen right now.Code:fIn2.get(xCh[0]); fIn2.get(xCh[1]); fIn2.get(xCh[2]); fIn2.get(xCh[3]); fout.put(xCh[1]); fout.put(xCh[0]); fout.put(xCh[3]); fout.put(xCh[2]);
thanks,
keith