Wrox Programmer Forums
|
BOOK: Ivor Horton's Beginning Java, Java 7 Edition
This is the forum to discuss the Wrox book Ivor Horton's Beginning Java, Java 7 Edition by Ivor Horton ; ISBN: 978-0-470-40414-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Ivor Horton's Beginning Java, Java 7 Edition 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 August 18th, 2012, 03:58 AM
Registered User
 
Join Date: Jan 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Better Code For Chapter 3 EX 3

/**
*
* @author NIRBHAY
*/
public class CH3_ex3
{
public static void main(String[]args)
{
short num1=1;
for(int j=1;j<=5;++j)
{
System.out.print(" \n Set No : "+j+" is ");
for(int i=0;i<=5; ++i)

{

num1 = (short)((Math.random()*49));
System.out.print(num1+" ");
}
}

}

}





Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 7 Code joe_a84 BOOK: Professional Windows Phone 7 Application Development: Building Applications and Games Using Vi 0 December 25th, 2010 07:04 PM
Chapter 2 Code lgschmidt BOOK: Expert SQL Server 2005 Integration Services ISBN: 978-0-470-13411-5 0 April 22nd, 2010 03:24 PM
Chapter 6 - Code Download Missing for this Chapter dbaechtel BOOK: Professional SharePoint 2007 Development ISBN: 978-0-470-11756-9 0 August 11th, 2009 11:02 AM
Chapter 3 code dsprague BOOK: Professional Microsoft Robotics Studio ISBN: 978-0-470-14107-6 1 June 23rd, 2008 08:09 PM
Chapter code charleshua BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 0 October 5th, 2007 04:16 PM





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