Using Slider to identify a variable with Transversals

I am new to teaching AP Computer Science Principles and using JAVA within Code.org as an instructional tool. We’re in Unit 6, Lesson 13 – Hackathon, and a student is trying to filter the data using a slider to select the year. There are no apparent errors with this code, and the slider used with his onEvent handler is updating the variable, which is being read by the updateScreen function.

They are employing some of the concepts explored in Lesson 12 with the Weather App, but tailored to work with the dataset from Nobel Prize Winners. I’ve extracted the screen from their project to troubleshoot.

LINK: App Lab - Code.org

The function used to filter the data and append the lists does not appear to be receiving the information, or defining the variables for each item.

I have some experience with various computer languages, and I know something is amiss, but my mind is simply gone blank and I cannot seem to identify the issue. A fresh set of eyes on this would be greatly appreciated.

Thanks in advance . . .

your issue is that your iterating through a 2d array instead of a 1d one getColumn returns an Array datatype with the specific column requested from the database. using console log statements or the inbuilt applab debugger could have also been a great way to troubleshoot if you didn’t try that already

anyways here’s the modified starting code

var yearList = getColumn("Nobel Prize Winners 1901-2016", "Year of award");
var firstNameList = getColumn("Nobel Prize Winners 1901-2016", "First name");
var lastNameList = getColumn("Nobel Prize Winners 1901-2016", "Last name");
var categoryList = getColumn("Nobel Prize Winners 1901-2016", "Category");
var motivationList = getColumn("Nobel Prize Winners 1901-2016", "Motivation");

Varrience

Thanks for the information, and setting me straight. It makes perfect sense. I am not as versed on the technical formatting of Java as some other languages, and I was hoping there would be a solution that was based on the formatting we covered in the unit.

Sorry for the delayed response, but I was out of pocket for a week. I really appreciate your assistance!