about | help | code help+videos | done | prefs |
longerThan4
public boolean longerThan4(String s)
public boolean longerThan4(String s) { boolean answer = false; int len = s.length(); if (len > 4) { answer = true; } return answer; } longerThan4("") → false longerThan4("12345") → true longerThan4("1234") → false ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 3
Copyright Nick Parlante 2017 - privacy