Link to home
Start Free TrialLog in
Avatar of LyonJay
LyonJayFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Simple Java

Dear all,

I am new to Java language and just trying to get to grips with it.

I have been given this question:

Write a class in which use instance variables name and myval and make objects of this  class and assign the value of myval  variable using Math.random() method and print the name of  objects who gets the maximum and minimum values .

The problem is it asking to print the name of objects wh gets the maximum and minimum values?

What are they asking from that?

Regards

Lyon JT
Avatar of -epoch-
-epoch-
Flag of South Africa image

Can you please explain a bit better? and also post the code you have at the moment
Avatar of LyonJay

ASKER

I need to answer that question above basically.

I have no code at the moment i wanted to understand the question before i code it.

Regards


Lyon JT
ASKER CERTIFIED SOLUTION
Avatar of -epoch-
-epoch-
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial