maman17_1 - 17" Java 20441 18 17 5 8.7.2006 2...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 17 (") Java - 20441 : : 18 - 17 : 5 : : 8.7.2006 2 : 2006 : () : . " . : . " . . " . " , . "" , .75 , , IntNode, IntList API ,"" - , - ."API" - (%10 - 1 ) : , IntList public String toString() - .String - . , . ) ,2 ,65 ,4 6 ,8 : : 27 6 8 2 65 4 list .( 2 ,65 ,4 (%90 - 2 ) : (element) (set) . : x : , x A x ,(A - A, x - x: ) A .A , . . , B - A . x2 - 7x + 12 = 0 : , .(4- 3 ) .2 ) 1- 0 : , . .( ,) A .(9- 15 - 10 .0 28 A , B - B, A - A .(B - A , B- A: ) .B , B - A .AB . B A {AB = {2, 6 {B = {2, 3, 8, 6 - {A = {6, 2, 4 , , B - A .AB . B A {AB = {2, 3, 4, 6, 8 {B = {2, 3, 8, 6 - {A = {6, 2, 4 , A\B , B - A .B A { A\B = { 4 {B = {2, 3, 8, 6 - {A = {6, 2, 4 , Set .( ) {...,8 ,6 ,4 ,2 .( = ) } . . . - (instance variables) : : public boolean isEmpty () ; false- true public boolean isMember (int num) 29 ; false- num true public boolean equals (Set other) ; false- other true public int numOfElements () ; public boolean subSet (Set other) false- - other true ; public void addToSet (int x) . x ;( ) public void removeFromSet (int x) . x ;( ) public void printSet () ; 30 public Set intersection (Set other) ; other public Set union (Set other) ; other public Set deifference (Set other) ;other . . Java : . . ( ) , " .1 . . " .2 IntNode.java, : Java .3 . . zip ,Set.java 31 ...
View Full Document

This note was uploaded on 07/23/2009 for the course MATH. 04101 taught by Professor ישראלפרידמן during the Summer '06 term at The Open University.

Ask a homework question - tutors are online