CS421_Spring2011_Final_Exam002_final

CS421_Spring2011_Final_Exam002_final - !"#$%...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

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

Unformatted text preview: !"#$% "'()*+ $,%% !"# %&'() !*+*,-& ./01&*' 223-)*./ 01.2)*.3)4* .145/'1 6)7/8 9999999999999999999999999999999999999999999999999999 .145/'1 :;8 999999999999999999999999999999999999999999999999999999 .145/'1 <&(')14"/ =*" >*'*" ?*5/8 99999999999999999999999999999999999999999999999999999999 @)"1 A8 .B*"1 C'<D/"# !E 6EF GH@HCF 1B/ I4/<1&*' &' 1B/ )'<D/" =*" =4,, 0"/5&1# JK.F 7/)'< 4</5 ) +4,,/1/5 ,&<1 L D"&1&'( &' ) M)")(")MB D&,, '*1 "/0/&N/ =4,, 0"/5&1# A# OB/' &< &1 ) (**5 1&7/ 1* "/=)01*"P 6)7/ 1D* <40B (/'/"),Q 5&<1&'01 <&14)1&*'< R&#/# '*1 "/,)1/5 1* )'- M)"1&04,)" M"*S/01T RU M1<T 3# J&<1 V 0*5/ <7/,,< )'5 &' E6H .H6FH6?H R*" ,/<<T /WM,)&' DB)1 /)0B *'/ &<# RA2 M*&'1<T X# OB)1 )"/ 1B/ =*4" 1"/)17/'1< D/ 0)' )MM,- 1* "&<YQ &' (/'/"),P J&<1 1B/ =*4" 1"/)17/'1< )'5 &' E6H .H6FH6?H R*" ,/<<T /WM,)&' /)0B *'/# RZ M*&'1<T U# ?),04,)1/ 1B/ "&<Y /WM*<4"/ *= <,//M&'( 1B"*4(B 1B/ =&'), =*" 1B&< 0,)<<# !*047/'1 ),, -*4" )<<47M1&*'<# RV M*&'1<T V# ?),04,)1/ 1B/ 0-0,*7)1&0 0*7M,/W&1- *= 1B/ =*,,*D&'( 0*5/ R<B*D -*4" D*"Y =*" M)"1&), 0"/5&1 L [ M*&'1<T8 public void calculate(ArrayList list){ int ctr = list.size(); if (ctr == 0){ while(ctr < 100){ System.out.println(empty); ctr++; } else System.out.println(not empty); list.remove(list.get(0)); calculate(list); } [# J&<1 =&N/ 5&<1&'01 1B&'(< 1B)1 D/ B)N/ 5&<04<</5 &' 0,)<< 1B)1 0*""/,)1/ D&1B +4(< &' <*4"0/ 0*5/# HWM,)&' 1B/ 0*""/,)1&*' &' E6H .H6FH6?H R*" ,/<<T =*" /)0B &1/7 RA2 M*&'1<T \# J&<1 1D* 5&==/"/'1 D)-< ) M/"<*' 0*4,5 ,/N/, "/<*4"0/< &' 1B/&" M"*S/01 <0B/54,/ RD&1B*41 1B/ 4</ *= ) <0B/54,&'( 1**,T# RU M*&'1<T Z# J&<1 1B"// M"*M/"1&/<Q )< 5&<04<</5 &' 0,)<<Q *= ) (**5 M"*S/01 7/1"&0# K' E6H .H6FH6?H /WM,)&' DB- /)0B M"*M/"1- &< 4</=4,# R[ M*&'1<T ]#...
View Full Document

This note was uploaded on 03/26/2012 for the course CS 321 taught by Professor Kinga during the Spring '12 term at George Mason.

Page1 / 13

CS421_Spring2011_Final_Exam002_final - !"#$%...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online