WS2. java.util.Set

3 views
Skip to first unread message

Akif

unread,
Mar 9, 2009, 2:30:01 PM3/9/09
to mis...@googlegroups.com
Workshop 2. java.util.Set
 
Before coming to the lab:
* study HashSet.teacher (attached file) or
  use Chooser.teacher(HashSet) in SSS
 
In the lab:
* study the API for classes Set<E> and Math
* make a Math teacher that demonstrates at least 
  5 Math methods and send it as reply to this mail

-- 
_Akif_Eyler_
HashSet.teacher

Erman Ersoy

unread,
Mar 10, 2009, 2:46:48 PM3/10/09
to mis...@googlegroups.com, Akif Eyler

 //First of all java.lang.Math class is choosen
Menu.chooser();
class mae.sss.Chooser
Chooser.systemClass();
class java.lang.Math
//Round 10.2
//+Rounding down to 10
Math.round(10.2); //--> 10
//Round 10.6
//+Rounding up to 11
Math.round(10.6); //--> 11
//Find the greater number
//+22 is greater than 11
Math.max(11, 22); //--> 22
//Find the greater number
//+5 is greater than 3
Math.max(5, 3); //--> 5
//Find the lower number
//+13 is lower than 15
Math.min(15, 13); //--> 13
//Find the lower number
//+111 is lower than 112
Math.min(111, 112); //--> 111
//Give me a random double
Math.random(); //--> 0.734508294625869
//Give me a random double
Math.random(); //--> 0.7040624998004883
//What is the square root of 4
//Squre root of 4 is 2
Math.sqrt(4.0); //--> 2.0
//What is the square root of 3
//Squre root of 9 is 3
Math.sqrt(9.0); //--> 3.0
//Thats all
 
 
 
 
 
 

Date: Mon, 9 Mar 2009 20:30:01 +0200
Subject: [MIS 540] WS2. java.util.Set
From: ey...@eng.marmara.edu.tr
To: mis...@googlegroups.com

Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it!
Math.teacher
Reply all
Reply to author
Forward
0 new messages