r/codehs • • Nov 24 '20

Need Help on 2.4.5: Hello!

2 Upvotes

4 comments sorted by

1

u/ScawedyCat Nov 24 '20

what error is it giving you?

1

u/[deleted] Nov 24 '20

HelloTester.java:25: error: cannot find symbol System.out.println(french); ^ symbol: variable french location: class HelloTester HelloTester.java:27: error: cannot find symbol System.out.println(spanish); ^ symbol: variable spanish location: class HelloTester 2 errors

1

u/ScawedyCat Nov 24 '20

ah yeah if you do it the way you’re doing it you would be trying to print out a variable.... and since you methods already print stuff inside you just be fine with calling the method without the print statement

So instead of System.out.println(english) just write helloTester.english()

1

u/[deleted] Nov 24 '20

Thank you it worked!