Skip to content
Advertisement

How do i output this correctly

So i managed to create this program but im struggling to output the boolean lessThan and greatherThan. I tried to create the strings str1 and str2 and mess around with them but i can’t get it to work. New to java, sorry!

JavaScript

Advertisement

Answer

JavaScript

Replace str1.to.lowerCase() the same way you did for str2… so `str1.toLowerCase()“

JavaScript

Replace Str2 with str2.. Java is case sensitive..

That should fix the issue I think you meant when saying “i can’t get it to work

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement