Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.


+8 votes

Hi guys. i am almost done with my program but when I want to test it, on the TVtoGO class it has an syntax error at this line
labelTopRanked = new JLabel("#1: " + videoContent.topRanked().getFullTitle());
and it has red line under getFullTitle();. I cannot figure out why it is like that?

asked in CSC212_Spring2019 by (8 points)

1 Answer

+4 votes

What does the syntax error say?

One student earlier today had the topRanked method in the Content class returning a String instead an object of type VideoItem. The return type of topRanked is VideoItem.

answered by (8 points)

so i fix it and it does not show it anymore is it the same for the findVideoItem?