You are here:
| Expert | Average Ratings | Expertise |
|---|---|---|
Ziv Ben-EliahuIsrael
Available
|
I can answer questions relating to: Java language and usage, coding standards, application modeling and design (model driven development), unit/system testing, test driven development, algorithm complexity issues, Ant and XML-technologies. | |
Neeraj A. ShahIndia
Available
|
You can ask me questions on core Java UI(esp. Swing), Java Desktop API sockets(synchronous & asynchronous), NIO, IO and channels, Nimbus, XML, Scripting, WebServices, JNI, Java Native Code etc. | |
Artemus HarperU.S.
Available
|
I have a BS in computer science and am working towards a Masters degree. | |
Neal ZiringOn Vacation
returns 11/22/2009 |
Almost anything about the core Java platform, with an emphasis on networking. Not familiar with JDBC or the new Java graphics APIs. [Sun Certified Java Programmer, JDK 1.1] |
You can use long (instead of int), which has twice as many bits and a much bigger value (big enough to hold the number of milliseconds since the beginning of the universe several times over). If that is
You need a class Dice. That class has a single field current, it should be private. Add a method to get the value of this field. Add another method to change this value to a random one (current = new Random()
Its pretty easy to implement your own zoom. You can simply: float scale = ...; Point scaleCenter = ...; protected void paintComponent(Graphics g) { Graphics2D g2 = (Grphics2D)g; AffineTransform
You have: class Vehicle2 { int passengers; // number of passengers int fuelcap; // fuel capacity in gallons int mpg; // fuel consumption in miles per gallon } You can change this
To 'peel' off a digit from a number you can: int num = ...; int remaining = num; while(remaining != 0) { int digit = num % 10; remaining = remaining / 10; //do whatever you want with this
Answers by Expert:

©2009 About.com, a part of The New York Times Company. All rights reserved.