(Java) Reading a file > convert it into and array and calculate the numbers : So i have a file called "results.txt" and has these values inside:

    0118210:1801:XDCS1094:A:4
    0118210:1801:XDCS2034:B+:4
    0118210:1801:XDCS1043:C:3
    0118024:1801:XDCS1094:B:4
    0118024:1801:XDCS2094:A:4

So i want to read the file , make it an array and remove the delimiter and calculate based on the GPA formula. So this is my thoughts of how it should work but im still not so sure and im new to programming. I am also trying to make my results display in a new line instead of everything in one line as shown in the image.Any help would be appreciated thanks it is for my assignments
[Line][1]

      public void run()
        {
                try{
                     do{
                           found=0;
                           received = in.readLine();
                           array2=received.split(":");
                                   if(received.equals("QUIT")) break;
                                         switch(received.charAt(0))
                                        {
                                                 case 'R':
                                                          Register();
                                                          break;
                                                 case 'L':
                                                          login();
                                                          break;
                                                 case 'V':
                                                          View();
                                                          break;
                                        }
                         }while(!received.equals("QUIT"));
                  }
                        catch(IOException e)
                        {
                                e.printStackTrace();
                        }

     public void View() throws IOException
        {
                String grade ="";
                in3 = new BufferedReader(new FileReader("results.txt"));
                while((result = in3.readLine()) !=null)
                {
                        array4=result.split(":");
                                if((array2[1].equals(array4[0])) && (array2[2].equals(array4[1])))
                                        {
                                                grade += array4[2]+" "+array4[3]+" "+array4[4];
                                                found=1;
                                        }
                if(found==0)
                out.println("No Records");
                }
                out.println(grade);
                GCPA();
        }

       public void CGPA() throws IOException{
         if(array4[3] == "A") {
             IntArray = Integer.parseInt(array4[3]);
             IntValue = IntArray * 4;
        } else if(array4[3] == "B") {
          IntArray = Integer.parseInt(array4[3]);
          IntValue = IntArray * 3;
        }
        IntCH += IntArray;
        IntCGPA = IntValue/IntCH;
        out.println(IntCGPA);
       }


  [1]: https://i.stack.imgur.com/6GL0b.png