/* Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com
This code is for educational purposes only. Use at own risk.*/

1. import java.awt.* ; 

2. import java.applet.* ; 

3. import java.awt.event.*; 

4.  

5. public class Continuing 

6.     extends Applet 

7.     implements ActionListener 

8.

9.   Button  btn ; 

10.   TextArea ta ; 

11.  

12.   public 

13.   Continuing ( ) 

14.   { 

15.     btn= new Button ( "Do it, please" ) ; 

16.     ta = new TextArea ( 10, 20 ); 

17.   } 

18.  

19.   public void 

20.   init() 

21.   { 

22.     setBackground ( Color.yellow ) ; 

23.     ta.setBackground ( Color.white ) ; 

24.     btn.addActionListener ( this ) ; 

25.  

26.     add ( btn) ; 

27.     add ( ta ); 

28.  

29.     validate() ; 

30.   } 

31.  

32.   public void 

33.   actionPerformed( ActionEvent ev ) 

34.   { 

35.     ta.setText ( "" ) ; 

36.  

37.     int nr = 0

38.     int remainder ; 

39.  

40.     while ( nr <= 35 )   

41.     { 

42.       ++nr ; 

43.       remainder = nr % 3

44.       if ( remainder == 0  ) 

45.       { 

46.         continue

47.       } 

48.       ta.append ( nr + "\n" ) ; 

49.     } /// end while     

50.   } 

51.