day05 before the review stage

First, good at discovering problems, all problems will string together to find solutions to solve the problem, steps. To question some deep thinking. No one to help you find your question, only you, to learn positive feedback. Have confidence.

Second, object-oriented, set, IO, generics

Three, I / O collection object 

   File: random location, data format: ID, name, gender, score, address

  After reading the file data into objects User

  User will be placed in the collection

  Collection User, in accordance with the address, gender, group, and within each group the score also sorted.

  - Such as: Beijing, male; Shanghai, woman

 

  Or: random file location, store the data in the following format: ID, name, age; After reading into the database

  

Topic11 class {public 
// read the data file 

// parse data 

// storage 

public static void main (String [] args) { 
    
} 
//. 1, to read the file 
public static List <String> readFile ( String path) { 
       new new File File = new new File (path); 
       Final the BufferedReader Reader the BufferedReader new new = (File); 
       String Val = null; 
       the while (! (reader.readLine Val = ()) = null) { 
           
       }        
} 
}

  

Guess you like

Origin www.cnblogs.com/wangkc/p/11111601.html