Want to get more out of the Java language and platform? In this platform- and framework-neutral course, instructor Bethan Palmer digs into some of the language’s more advanced features, helping you expand your programming skills as she equips you with techniques you can use when building applications anywhere Java is used: in web, mobile, and desktop applications. Bethan covers a variety of topics, including generics, working with the Collections Framework, and functional programming. Plus, learn about I/O in Java, working with files and directories, and structuring applications using the modular system available in Java.
Software Developer and Java ChampionBethan Palmer is a developer who loves technology and has a master's degree in computer science.For her day job, Bethan is a Java programmer and the product manager for a Java PDF library at IDRsolutions. She gets to spend a lot of time writing and refactoring code, as well as deciding on product strategy and road maps. She also spends much of her time attending conferences and is a regular speaker at Oracle Code One and NetBeans Days. She manages and writes articles about Java, technology, the books she's reading, and conferences she's attending on the Java PDF blog.
Skills covered in this course
Learn advanced Java programming“
- [Instructor] The best way to move, copy, and delete files in Java is with the path class. This offers the additional functionality which is not available in the file class. In this example, I have a simple file called Hello World, which just contains the text, Hello World. This is inside the same directory as my project, PathClassExample. One of the useful things that can be done with a path class is checking if a file exists and deleting it if it does. I can do this with my Hello World file. First, I need to create a path object, which I'll call path. Then I call a static get method of the paths class and pass in the name of my file. Because this is in the same directory as my project, I just need to put the name of the file. I also need to make sure I have the input statements for the path class and the paths class. Now I can check if the file exists and delete it if it does in one single line of code. I need to use a class called files to do this. Like the path class, this only…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Download the exercise files for this course. Get started with a free trial today.
Download courses and learn on the go
Watch courses on your mobile device without an internet connection. Download courses using your iOS or Android LinkedIn Learning app.
Watch this course anytime, anywhere. Get started with a free trial today.