CodeGym /Java Course /Java Collections /Learning to google | Level 1 | Lesson 11

Learning to google | Level 1 | Lesson 11

Java Collections
Level 1 , Lesson 11
Available

"Hi, Amigo!"

"Let's continue our lessons on how to google."

"Here are some exercises:"

Find the following on the Internet:
1 Examples of working with the File class
2 How do you get a list of all files in a directory and its subdirectories?
3 How do you get a list of all files with a zip file extension in a directory?
4 How do you zip a file?
5 How do you zip a lot of files?
6 How do you zip a lot of files and directories?
7 How do you unzip a file?
8 How do you set the file encoding?
9 How do you find out the encoding of a file in an archive?
10 How do you change the data (properties) in a Properties object?
Comments (3)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Romain Level 26, Paris, France
12 March 2021
I haven't find any answer for the 9th question Someone have a link to it ? thx
Jurij Thmsn Level 29, Flensburg, Germany
19 May 2021
maybe this: https://www.tutorialspoint.com/java/io/inputstreamreader_getencoding.htm edit: it seems like you just get the encoding of the stream with this. Getting the encoding of a file is much more complicated. You might actually have to use libraries(e.g. guessEncoding) for this task... https://stackoverflow.com/questions/499010/java-how-to-determine-the-correct-charset-encoding-of-a-stream
Dyrits Level 22
3 January 2021
Kind of pointless, since we usually do that anyway to resolve the tasks.