您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

Introduction

Content

Apply

Reflect

Extend

previous.gif
 (3087 bytes)

next.gif
 (2959 bytes)


Apply Index

Apply Page # 5

Activity 5 – Reversing a string

Write a Java applet that reverses the letters of a string of text.

For example, given the name "Mary Smith" it should display "htimS yraM".

Use only String objects (i.e. not arrays of characters) in your applet.

The screen should look something similar to the following when executed:

image15.gif (3139 bytes)

Discussion/Suggested solution to Activity 5

Back to content

Back to top

basicline.gif (169 bytes)

RITSEC - Global Campus
Copyright ?1999 RITSEC- Middlesex University. All rights reserved.
webmaster@globalcampus.com.eg