/* 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.  

2. public class SEMMAp 

3.     extends java.applet.Applet 

4.

5.   String str = "ab@cd.net"

6.   int pos = -1

7.  

8.   public void 

9.   paint ( java.awt.Graphics  gr ) 

10.   { 

11.     pos = str.indexOf('@') ; 

12.  

13.     gr.drawString 

14.     ( "Position : " + pos, 

15.       20, 30  ); 

16.   } 

17.

18.