QQ Group Dialogue Finishing (delete some simple responses), on some important places, I made some bold Baoyu 2015/9/21 1:49:05
There's another problem with this topic.How to read Excel,I think it's a difficult thing for a lot of students .
Java read Excel I didn't do it, but if I do,I'll have a few ideas .
Direct Google(Technical Articles try to use GoogleJava reads the Excel document and finds the appropriate class library
It's minethe keyword would be: Java Read Excel
Basically, the first few are the answers .
But I looked at the code, and I relied on a third-party class library, and I hated it.
Then wethink about how to simplify the problem and do it in a simple way as much as possible .Do you know the CSV?
Count 131-Zhang Zhenji (380366480) 2015/9/21 1:52:52
Never heard of it.
Bao Yu (9619774) 2015/9/21 1:53:22
Never heard of normal, thisfrom the usual accumulation of knowledge
CSV is a plain text format
Http://baike.baidu.com/subview/468993/5926031.htm
Count 131-Zhang Zhenji (380366480) 2015/9/21 1:55:06
Do you want to convert the table to CSV? Bao Yu (9619774) 2015/9/21 1:55:25 Excel can be exported to CSV
CSV is plain text format
Bao Yu (9619774) 2015/9/21 1:56:22
When the text editor opens, this
A line of text is one line of Excel
Each column of data is separated by commas
So now the problem is simple, no need to rely on the Excel library
Bao Yu (9619774) 2015/9/21 1:58:11
Now with the help of existing knowledge should be able to complete
even if you're lazy or you don't know, go ahead and change the keyword. Search: java read CSV
Bao Yu (9619774) 2015/9/21 1:59:01
This is the first article to search out: http://www.mkyong.com/java/how-to-read-and-parse-csv-file-in-java/
Look, the code can learn from the
Count 131-Zhang Zhenji (380366480) 2015/9/21 2:00:36
It seems as if you change the path of the first line.
Bao Yu (9619774) 2015/9/21 2:00:43
But hereI have to stress that search engines can help you solve many problems, but you can't rely too much on search engines, and even if you find answers through search engines, you must fully understand the answers.
Bao Yu (9619774) 2015/9/21 2:01:23
So ask youIf the code is found through a search engine, you must:
1. Indicate the source
2. Each line of code is annotated with your understanding!
Otherwise, it might be 0 minutes.
Count 131-Zhang Zhenji (380366480) 2015/9/21 2:02:47
The amount of ... It's a dangerous way.
Bao Yu (9619774) 2015/9/21 2:03:07
Don't be a "Baidu programmer"
"Baidu programmer" refers to all the problems will only through Baidu to search for reference, Baidu Search does not come out will not do
Count 131-Zhang Zhenji (380366480) 2015/9/21 2:04:36
I need to upgrade to "Google Programmer".
Baidu in the east and West Zhengshao
Bao Yu (9619774) 2015/9/21 2:06:01
to do a good job of software development, in addition to programming itself, there are two capabilities necessary:
1. English should be gradually improved
2. Learn to use Google to search
Chinese keyword retrieval technology it's going to be hard. Bao Yu (9619774) 2015/9/21 2:10:22
@ Meter 131-Zhang Zhenji have you ever studied object-oriented?
Count 131-Zhang Zhenji (380366480) 2015/9/21 2:10:55
I forgot, I don't know, nobody remembers.
Bao Yu (9619774) 2015/9/21 2:11:55
Judging from the assignments you've had in front of you guys.
are not applied to object-oriented concepts
If you've learned it, you should remember to reflect on it.
Count 131-Zhang Zhenji (380366480) 2015/9/21 2:12:34
Aha, I found that joke.
Bao Yu (9619774) 2015/9/21 2:12:50
If you have not learned it, you should teach yourself (Note:They have learned C + +, object-oriented thinking may have been returned to the teacher, textbook reasons, excessive fall into the details of the C + + language may be another reason)
Count 131-Zhang Zhenji (380366480) 2015/9/21 2:14:20
Well, okay.
Bao Yu (9619774) 2015/9/21 2:14:20
The code structure for this course, in terms of object-oriented design, should look like this:
Bao Yu (9619774) 2015/9/21 2:15:05
1 classA {2 Public intCountint[] A,intStartintlength) {3 }4 }5 classB {6 Public intCountint[] A,intStartintlength) {7 }8 }9 classC {Ten Public intCountint[][][] A,intStartintlength) { One } A}
Bao Yu (9619774) 2015/9/21 2:17:59
If there is a unified base class, it can be changed to:
1 classD {2 Public Abstract intCountint[][][] A,intStartintlength);3 }4 5 classA extends D {6 Public intCountint[][][] A,intStartintlength) {7 //Only count the first column8 }9}
Count 131-Zhang Zhenji (380366480) 2015/9/21 2:19:00
This...... This is the answer to the fourth question of the second assignment.
Do you?
Bao Yu (9619774) 2015/9/21 2:20:48
The structure of the main function should be:
1 classD {2 Public Abstract intCountint[][][] A,intStartintlength);3 }4 5 classA extends D {6 Public intCountint[][][] A,intStartintlength) {7 //Only count the first column8 }9}
Bao Yu (9619774) 2015/9/21 2:22:45
This is not a direct answer to you .
It's about telling you how to design a program.
Count 131-Zhang Zhenji (380366480) 2015/9/21 2:23:42
Good
Bao Yu (9619774) 2015/9/21 2:25:10
You can think about how my program structure differs from your structure, what are the pros and cons
Count 131-Zhang Zhenji (380366480) 2015/9/21 2:25:45
The downside is being tired.
Bao Yu (9619774) 2015/9/21 2:26:12
This is the same as the previous Google code, must have their own thinking
Bao Yu (9619774) 2015/9/21 2:31:33
Have a rest earlier.
Count 131-Zhang Zhenji (380366480) 2015/9/21 2:31:48
Oh
How to get help ———— QQ Group Discussion Summary