a program asking the user to unscramble the scrambled word

Click here to load reader

Post on 02-Aug-2015

8 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

1. A program asking the user to unscramble the scrambled word. FRAME:

CODING:private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: char s; String sword, nword; int i=0,l,j,k; t1.setText(""); t2.setText(""); sword=t3.getText(); l=sword.length(); if(l%3==0) {k=2;} else {k=3;} while(t1.getText().length()l) {i=i-l; } } for(j=0; j