The Java class library includes two completely separate file I/O systems—the original system that was delivered with the original version of Java back in 1995, which has evolved somewhat since then; and a completely new version that was delivered with Java 7. In this demonstration of copying a file, learn about a technique that’s available in all versions of Java, including the Android implementation.
- [Instructor] The Java class library…includes two completely separate file I/O systems:…the original set of interfaces and classes…that was delivered with Java back in 1995…and has evolved somewhat since then,…and a completely new version…that was delivered with Java 7.…In this demonstration of copying a file,…I'll use a technique that's available…in all versions of Java, including Android's implementation.…This project includes a file called loremipsum.txt.…
It's in a file subdirectory and it contains a bunch of text.…Now when you open this file in your copy of IntelliJ IDEA,…the code may not be wrapped,…if you want to see it wrapped, go to the settings…or preferences dialog, then go to editor, general…and select the option, use soft wraps in editor…and then you'll be able to see all of the text…as I am showing it here.…In the main method of the main class of this project,…I'm going to create a variable called source file…that points to that file.…
Notice I'm addressing this file using a relative directory.…
- Debugging Java code
- Handling exceptions
- Creating custom classes
- Working with inheritance
- Managing data collections
- Using Java packages and libraries
- Preparing a Java application for deployment
Skill Level Intermediate
1. Exception Handling and Debugging
2. Create Custom Classes
3. Work with Inheritance
4. Manage Data Collections
5. Use Java Packages and Libraries
Work with dates and times7m 12s
6. Prepare a Java Application for Deployment
Next steps1m 12s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.