Unlock the full course today
Join today to access over 15,000 courses taught by industry experts or purchase this course individually.
Taking a college-level programming course? Maximize your learning with these Java tutorials. Peggy Fisher explores command-level programming, basic techniques such as managing loops and creating methods, debugging Java code, working with classes and objects, and storing and sorting arrays. Along the way, she investigates the Java API and Java's capabilities for running simulations and algorithm analysis, and issues challenges to write programs that utilize all of these Java features.
Lecturer at Penn State UniversityPeggy Fisher is a programmer and content manager at LinkedIn Learning.
Peggy's main focus is application programming in Java, Arduino, and C++. She has also worked on courses in COBOL and discrete ,athematics. Previously she was a faculty member at Penn State University's College of Information Sciences and Technology. She started out as a programmer working for a large insurance company, but after 18 years she left her job as a director of information technology to pursue her true passion teaching. She earned a master's degree in math education, and went on to teach high school math and computer science in Pennsylvania. In 2012, Peggy accepted a position as an instructional designer at Penn State, and shortly thereafter began teaching Intro to Application Programming with Java. She is a strong supporter of women in STEM. As one of the few female programming teachers, she serves as a mentor to incoming female freshmen who are considering a career in programming. She was also the K–12 outreach coordinator for the college, where she scheduled, ran, and taught summer camps for middle school and high school students. In a PBS NewsHour interview, she expressed that all students should take at least one programming class either in high school or college. Peggy enjoys constantly learning and finding new and exciting ways to bring technology to life in and outside of the classroom, such as using Arduino microcontrollers or Lego Mindstorms, to help make learning hands-on and fun.
Skills covered in this course
- Let's look at our first challenge. In this challenge you should use a text editor to write a Java program. I use brackets but Notepad++ or even Notepad would work just fine. The program should take in a string prompt as an argument. Then it's going to print that back to the screen. The prompt message should ask the user to enter their name and their age. Use the Scanner class to read in the name as a string and the age as an integer. Using this information, display the information back to the console. Once your program is written make sure to save the program to your myJava folder on the C: drive. Don't forget to set your environment variables before trying to compile the .java file. Go ahead and compile it using the command line. javac, space, your program name, .java. And finally you can run it using the java command. Run the program from the command line. Don't forget to include your message after the program name. I'm estimating that this will take you about 10 minutes to do. So…
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.