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

 

davereed@creighton.edu csc222 > classify
prev  |  next  |  chance

classify() -- You are given a number and want to determine its classification. The method should return either "positive", "negative" or "zero", depending on the number's value.


classify(12) → "positive"
classify(-1) → "negative"
classify(0) → "zero"

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

public String classify(int num) { }

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: 15

Copyright Nick Parlante 2017 - privacy