Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning Java 2
This is the forum to discuss the Wrox book Beginning Java 2, SDK 1.4 Edition by Ivor Horton; ISBN: 9780764543654
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Java 2 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2006, 11:18 AM
Registered User
 
Join Date: Apr 2006
Location: Hyderabad, Sindh, Pakistan.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default java questions

Iwanna Multiple Choice Question from Ivor Hortons Book JAVA 2 Begners only from chapter 2 to 5.

 
Old March 8th, 2007, 05:01 AM
Authorized User
 
Join Date: Feb 2005
Location: chch, n/a, New Zealand.
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

 
Quote:
quote:
Quote:
 Iwanna Multiple Choice Question from Ivor Hortons Book JAVA 2 Begners only from chapter 2 to 5.
just starting out myself but can you explain things better?

are you saying you want a sample of a multiple choice code?

eg

a=2
b=3
userentered=4
  // as userentered is higher than both a & b this if statement
  // is executed and program doesn't run the other 2 if statements
  // because of the end statement.
if (userentered > a) & (userentered > b)
   {
   System.out.println("you are higher than both start and end numbers!");
   end;
   }
  // only gets here if userentered if lower than a or b or lower than both
if userentered > a
  System.out.println("you are higher than starting number");
else
 System.out.println("you are lower than starting number");

if userentered > b
  System.out.println(you are higher than ending number);
else
  System.out.println("you are lower than endinging number");

hope this gives you some pointers

dave.





Similar Threads
Thread Thread Starter Forum Replies Last Post
.NET Interview Questions, C# Interview Questions, dotnetuncle .NET Framework 2.0 4 June 22nd, 2019 07:03 AM
Root Cause:java.lang.NoSuchMethodError: java.util. anees81 JSP Basics 3 March 1st, 2011 08:55 AM
java.lang.OutOfMemoryError: Java heap space meetkotresh J2EE 1 February 2nd, 2008 01:52 AM
Java Code - Wrox - Beginning JAVA - Ivor Horton ponguru Java Databases 3 May 18th, 2006 12:30 PM
Good Java/JSP etc interview questions are needed. BigDude JSP Basics 2 August 30th, 2005 05:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.