User Profile

Collapse

Profile Sidebar

Collapse
Boyotbh
Boyotbh
Last Activity: Jan 7 '08, 11:09 PM
Joined: Jan 7 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Boyotbh
    replied to "and" statements
    in Java
    Ah brilliant, I hadn't found that. Definitely getting bookmarked. I tried && and it isn't working currently, what is wrong with this

    Code:
        public void stuff(int input)
        
        {
            if (input >= -40 && <=75) {
               other=input; 
        }
          
            else {
                System.out.println("not valid.");
    See more | Go to post

    Leave a comment:


  • Boyotbh
    replied to "and" statements
    in Java
    ok thanks very much.

    I had been reading various tutorials on the if statement but hadn't been able to find the answer.
    See more | Go to post

    Leave a comment:


  • Boyotbh
    started a topic "and" statements
    in Java

    "and" statements

    I have only recently begun to use java, so apologies if this is a really stupid question, but how do you go about using and statements.

    for example if a user has to input a variable and it has to be between 40 and 60, what would be the code used to do this.

    I have been searching around the internet for a while and I can't find the answer anywhere.
    See more | Go to post
No activity results to display
Show More
Working...