201621123080 Java programming 12th Week of study summary

Source: Internet
Author: User

201621123080 Java programming 12th Week of study Summary 1. This week's study summary 1.1 summarizes multi-stream and file-related content in the way you like (mind mapping or other).

2. System-oriented integrated design-Library management system or shopping cart

Use streams and files to transform your library management system or shopping cart.

2.1 A brief description of how to use streams and files to transform your system. What is the format of the data in the file?

At the beginning of the program, the local User information table and the book information table are read and stored in the dynamic array. At the end of the program, the data in the dynamic array is written to the file and saved.

The data format is as follows (separated by spaces)

User Information Data
Name String
Numbers Long
Password String
Administrator Boolean
Book Information Data
Title String
Numbers Long
Author String
is the loan Boolean
Borrowers ' numbers Long
2.2 Brief description of what interfaces and classes are used in the file reading and writing section of the system with the stream associated with the file? Why use these interfaces with classes?
Classes and Interfaces function
BufferedReader Buffering of individual characters for improved read-in efficiency
BufferedWriter Buffer individual characters to improve write efficiency
FileWriter Character Write file
FileReader Character Read file
2.3 Read and write file-related code. Critical lines need to be annotated.

Reading books

Write a book

Read user

Write user

3. Code volume Statistics 3.1 Statistics the amount of code completed this week

The weekly code statistics need to be fused into a single table.

Week Time Total code Amount New Code Volume total number of files number of new files
1 0 0 0 0
2 0 0 0 0
3 472 472 11 11
4 472 0 11 0
5 468 -4 12 1
6 1043 575 30 18
7 2417 1374 51 21st
8 5129 2712 83 32
9 5284 155 89 6
10 5714 430 98 9
11 5995 281 105 7
12 6365 370 114 9
13 6771 50W 120 6

201621123080 Java programming 12th Week of study summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.