Video is locked.

Unlock the full course today

Join today to access over 15,000 courses taught by industry experts or purchase this course individually.

Java Essential Training for Students

Utilizing 2D arrays

From the course: Java Essential Training for Students

Start my 1-month free trial
  • Course details

    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.

    Instructor

    • Click here to view Peggy Fisher’s instructor page

      Peggy Fisher

      Lecturer at Penn State University

      Peggy 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

    For each course you will get

    • Exercise files and quizzes
    • Certificate of completion from LinkedIn
    • Offline and audio-only options
    Start my free month
  • Welcome

    - So far we've only reviewed one-dimensional arrays, but it is possible to have a multidimensional array. Here is an example of an array called "rents" that has four rows and three columns. The array is initialized with values for three months: January, February, and March. Let's look a the syntax for a multidimensional array. On line 14, you see we have the data type int with two sets of square brackets. That's because this array has two dimensions. The name of it is "rents" and it's equal to, I started out with some values. Notice, I used an open-curly bracket and then I have a second open-curly bracket that includes the first three values for the first row, and then a closed-curly bracket and a comma. I'm still inside of my initializer list at this point. Line 15 represents row 2, where I have three more values enclosed in curly brakets. Line 16 is row 3 and line 17 and row 4. Line 18 I'm using to print out the titles of each of the columns: January, February, March. Then I'm using…

  • 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.

Contents