Page 105 - IP
P. 105

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


                String a=jTextField1.getText();

                       a=a.toLowerCase();


                     if(a.equals("a")||a.equals("e")||a.equals("i")||a.equals("o")||a.equals("u"))


                           JOptionPane.showMessageDialog(this,"YES");

                       else


                           JOptionPane.showMessageDialog(this,"NO");




























               Q14. To display Number of characters in a word.
   100   101   102   103   104   105   106   107   108   109   110