short cut if statement

short cut if statement

Page 1 of 1

3 Replies - 26259 Views - Last Post: 22 February 2009 - 04:55 AM Rate Topic: -----

#1 eric42  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 21-February 09

short cut if statement

Posted 21 February 2009 - 08:15 AM

[code] :blink: I am a student learning Java for the first time. I recently finished an if statement, but seem to be having a somne trouble creating a short cut if statement. <e-mail address removed>

Moderator Note: Removed the e-mail address from the message body.
- Core

Is This A Good Question/Topic? 0
  • +

Replies To: short cut if statement

#2 BetaWar  Icon User is offline

  • #include "soul.h"
  • member icon

Reputation: 1199
  • View blog
  • Posts: 7,309
  • Joined: 07-September 06

Re: short cut if statement

Posted 21 February 2009 - 10:00 AM

Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: :code:

Thanks.
Was This Post Helpful? 0
  • +
  • -

#3 BigAnt  Icon User is offline

  • May Your Swords Stay Sharp
  • member icon

Reputation: 101
  • View blog
  • Posts: 2,392
  • Joined: 16-August 08

Re: short cut if statement

Posted 21 February 2009 - 10:54 AM

Check out the ?: operator in java
Was This Post Helpful? 0
  • +
  • -

#4 ayman_mastermind  Icon User is offline

  • human.setType("geek");
  • member icon

Reputation: 126
  • View blog
  • Posts: 1,860
  • Joined: 12-December 08

Re: short cut if statement

Posted 22 February 2009 - 04:55 AM

I suggest checking out this link: http://java-web.net/.../javabasics.htm it talks about the Basics and shows you how to use shortcut if statements in Java, hope this helps, good luck in your programming ;)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1