Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+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 (1 point)

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 (1 point)
+1

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

...