id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

amjadm@miamioh.edu assignment3 > isGreater
prev  |  next  |  chance

The string str1 is greater than the string str2 if the sum of ASCII code of all characters inside the str1 is greater than the sum of ASCII code of all characters in str2. Return true if str1 is greater than str2, and false otherwise.


isGreater("a", "A") → true
isGreater("a", "Z") → true
isGreater("dsfsd", "zzzz") → true

...Save, Compile, Run (ctrl-enter)

public boolean isGreater(String str1, String str2) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 105

Copyright Nick Parlante 2017 - privacy