Results 1 to 3 of 3
  1. #1
    repooc is offline Member
    Join Date
    Aug 2011
    Posts
    1
    Rep Power
    0

    Default what am i doing wrong here :(

    I can't figure out what I'm doing wrong. Thanks for the help <3.



    class numbers {
    public static void main (String args[]) {

    int number = 80;

    if(number > 70 ! number < 30)
    System.out.println("Yay");

    }
    }

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    Does that code compile? If not, and you can't understand the compiler message, post that message so you can ask a question about it. ("What does this message mean?")

    -----

    A couple of little things: use "code" tags rather than "quote" tags when you post code. There is a # button for this purpose next to the speech bubble one. The class should be named Numbers as Java classes start with an upper case letter: likewise it should be in a file called Numbers.java.

  3. #3
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

Similar Threads

  1. Replies: 4
    Last Post: 06-11-2013, 01:37 AM
  2. can't see where it went wrong..
    By Yakg in forum New To Java
    Replies: 5
    Last Post: 01-31-2011, 12:19 PM
  3. where did i go wrong?
    By Sri Vidhya in forum New To Java
    Replies: 1
    Last Post: 01-27-2010, 03:11 PM
  4. what wrong
    By pro85 in forum New To Java
    Replies: 3
    Last Post: 02-09-2009, 01:07 PM
  5. Can someone tell me what I did wrong??
    By booter4429 in forum New To Java
    Replies: 7
    Last Post: 08-13-2008, 08:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •