import java.io.BufferedReader;
import java.io.InputStreamReader;
import static java.util.stream.Collectors.toList;
import static java.lang.Integer.parseInt;

public class TopTenScorersApp {
    public static void main(String[] args) {

    class Player {
        final String name;
        final String team;
        final int games;
        final double ppg;
        Player(String[] line) {
            this.team = line[0];
            this.name = line[1];
            this.games = Integer.parseInt(line[2]);
            this.ppg = Double.parseDouble(line[3]) / games;
        }
    }

    new BufferedReader(new InputStreamReader(System.in))
        .lines()
        .map(line -> line.split(","))
        .map(Player::new)
        .filter(p -> p.games >= 15)
        .sorted((p1, p2) -> Double.compare(p2.ppg, p1.ppg))
        .limit(10)
        .map(p -> String.format("%-22s%-4s%8.2f", p.name, p.team, p.ppg))
        .forEach(System.out::println);
    }
}

@@ -61,100 +61,8 @@
 der;
-%0Aimport static java.util.stream.Collectors.toList;%0Aimport static java.lang.Integer.parseInt;
 %0A%0Apu
@@ -137,16 +137,20 @@
 rgs) %7B%0A%0A
+    
     clas
@@ -160,32 +160,36 @@
 layer %7B%0A        
+   
+ 
 final String nam
@@ -191,16 +191,20 @@
 g name;%0A
+    
         
@@ -226,24 +226,28 @@
 am;%0A        
+ 
+   
 final int ga
@@ -255,24 +255,28 @@
 es;%0A        
+  
+  
 final double
@@ -281,16 +281,20 @@
 le ppg;%0A
+    
         
@@ -325,24 +325,28 @@
             
+    
 this.team = 
@@ -362,24 +362,28 @@
             
+ 
+   
 this.name = 
@@ -391,16 +391,20 @@
 ine%5B1%5D;%0A
+    
         
@@ -447,16 +447,20 @@
 ne%5B2%5D);%0A
+    
         
@@ -523,21 +523,154 @@
     
+    
 %7D%0A    
-%7D%0A%0A
+        String reportLine() %7B%0A                return String.format(%22%25-22s%25-4s%258.2f%22, name, team, ppg);%0A            %7D%0A        %7D%0A%0A   
     
+ 
 new 
@@ -726,16 +726,20 @@
         
+    
 .lines()
@@ -739,16 +739,20 @@
 lines()%0A
+    
         
@@ -785,24 +785,28 @@
 %22))%0A        
+  
+  
 .map(Player:
@@ -811,16 +811,20 @@
 r::new)%0A
+    
         
@@ -859,16 +859,20 @@
         
+    
 .sorted(
@@ -923,16 +923,20 @@
         
+ 
+   
 .limit(1
@@ -942,24 +942,28 @@
 10)%0A        
+    
 .map(p -%3E St
@@ -964,64 +964,28 @@
  -%3E 
-String.format(%22%25-22s%25-4s%258.2f%22, p.name, p.team, p.ppg))%0A
+p.reportLine())%0A    
     

Improve Java top 10