# Java

**URL:** <https://forum.kirupa.com/t/java/239290>\
**Category:** programming\
**Created:** [September 20, 2007, 7:56am UTC](https://forum.kirupa.com/t/java/239290 "2007-09-20T07:56:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wayne](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/wayne/32/16501_2.png) [@Wayne](https://forum.kirupa.com/u/Wayne)\
**Post date:** [September 20, 2007, 7:56am UTC](https://forum.kirupa.com/t/java/239290/1 "2007-09-20T07:56:43Z")

</div>

I dont know how to tell the user to stop when the input from the user is a value of a -20 or a negative number.

i know how to use an if statement but the problem is i cant tell it to stop or show message if the user inputs a negative number

help in java programming
