or drag border to resize
Best viewed with Firefox
Feel free to donate Bitcoin, Bitcoin Cash, Ether or Litecoin Post this site to
JavaLessons.com

Java fundamentals excercises

Java Excercise 18

Can be done following StringBuffer

- Button, textfield, textarea. Append the text from the textfield to a StringBuffer at each button-press. Show the growing stringbuffer in the textarea. Cut it short to 5 characters when the length exceeds 14 characters.
You can get a String from a textfield like so : s = tf.getText();

Use this as your starting point : (double click to select)

Solution

Click in code below to read

JAVALESSONS.COM

Copyright © 2000-2014 System Exclusive & Multi Midi (NL) All rights reserved

Terms, conditions, disclaimer