Names

Names

Pl correct this program. This program will take character from user and show all the name which start that character.

import javax.swing.*; class Name1{ public static void main (String arg[]){ char ch; String =JOptionPane.showInputDialog(null,"Enter any character"); switch(ch){ case 1: JOptionPane.showMessageDialog(null,"Ali\n Azam\n Afzal\n"); break; case 2: JOptionPane.showMessageDialog(null,"Babar\n Bebo\n Bell\n"); break; default: JOptionPane.showMessageDialog(null,"Invalid"); } } }

View Answers

February 16, 2011 at 10:42 AM

Display name which starts with particular character

import javax.swing.*;
class Name1{ 
    public static void main (String arg[]){

        String st=JOptionPane.showInputDialog(null,"Enter any character");
        char ch=st.charAt(0);
        switch(ch){
            case 'a': JOptionPane.showMessageDialog(null,"Ali\n Azam\n Afzal\n");
            break;
            case 'b': JOptionPane.showMessageDialog(null,"Babar\n Bebo\n Bell\n");
            break;
            default: 
                JOptionPane.showMessageDialog(null,"Invalid");
            } 
            } 
            }









Related Tutorials/Questions & Answers:
Names
Names
Advertisements
JNDI names in netbeans
JNDI names in netbeans  how to create a JNDI names in netbeans
ModuleNotFoundError: No module named 'names'
ModuleNotFoundError: No module named 'names'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'names' How to remove the ModuleNotFoundError: No module named 'names'
Sorting Country names alphabetically
Sorting Country names alphabetically  Hello, I have a list of country names in an array. I need a jsp code which will sort me the country names in an alphaberical order. It would be more useful when I get the coding using
pass parameter names and values
pass parameter names and values  What is the <jsp:param> standard action?   The <jsp:param> standard action is used with <jsp:include> or <jsp:forward> to pass parameter names and values
ipad default image names
ipad default image names  i have a problem while launching application in iPad. The Default image that i have set is not displaying in landscape mode correctly. please suggest. Thanks.   ipad Default image names
Display set names
Display set names  If i enter the First letter of a name it will display the list of names starting with that letter in command prompt using java   import java.util.*; class DisplaySetOfNames{ public static void
ModuleNotFoundError: No module named 'flake8-variables-names'
ModuleNotFoundError: No module named 'flake8-variables-names'  Hi...: No module named 'flake8-variables-names' How to remove the ModuleNotFoundError: No module named 'flake8-variables-names' error? Thanks   Hi
ModuleNotFoundError: No module named 'names_comparator'
ModuleNotFoundError: No module named 'names_comparator'  Hi, My... named 'names_comparator' How to remove the ModuleNotFoundError: No module named 'names_comparator' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'names_comparator'
ModuleNotFoundError: No module named 'names_comparator'  Hi, My... named 'names_comparator' How to remove the ModuleNotFoundError: No module named 'names_comparator' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'names_comparator'
ModuleNotFoundError: No module named 'names_comparator'  Hi, My... named 'names_comparator' How to remove the ModuleNotFoundError: No module named 'names_comparator' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'names_comparator'
ModuleNotFoundError: No module named 'names_comparator'  Hi, My... named 'names_comparator' How to remove the ModuleNotFoundError: No module named 'names_comparator' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'names_comparator'
ModuleNotFoundError: No module named 'names_comparator'  Hi, My... named 'names_comparator' How to remove the ModuleNotFoundError: No module named 'names_comparator' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'names_comparator'
ModuleNotFoundError: No module named 'names_comparator'  Hi, My... named 'names_comparator' How to remove the ModuleNotFoundError: No module named 'names_comparator' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'names_comparator'
ModuleNotFoundError: No module named 'names_comparator'  Hi, My... named 'names_comparator' How to remove the ModuleNotFoundError: No module named 'names_comparator' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'names-dataset'
ModuleNotFoundError: No module named 'names-dataset'  Hi, My... 'names-dataset' How to remove the ModuleNotFoundError: No module named 'names-dataset' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'names-dataset'
ModuleNotFoundError: No module named 'names-dataset'  Hi, My... 'names-dataset' How to remove the ModuleNotFoundError: No module named 'names-dataset' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'names-dataset'
ModuleNotFoundError: No module named 'names-dataset'  Hi, My... 'names-dataset' How to remove the ModuleNotFoundError: No module named 'names-dataset' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'names-dataset'
ModuleNotFoundError: No module named 'names-dataset'  Hi, My... 'names-dataset' How to remove the ModuleNotFoundError: No module named 'names-dataset' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'names-dataset'
ModuleNotFoundError: No module named 'names-dataset'  Hi, My... 'names-dataset' How to remove the ModuleNotFoundError: No module named 'names-dataset' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'names-gen'
ModuleNotFoundError: No module named 'names-gen'  Hi, My Python... 'names-gen' How to remove the ModuleNotFoundError: No module named 'names... have to install padas library. You can install names-gen python with following
ModuleNotFoundError: No module named 'names-gen'
ModuleNotFoundError: No module named 'names-gen'  Hi, My Python... 'names-gen' How to remove the ModuleNotFoundError: No module named 'names... have to install padas library. You can install names-gen python with following
ModuleNotFoundError: No module named 'names_comparator'
ModuleNotFoundError: No module named 'names_comparator'  Hi, My... named 'names_comparator' How to remove the ModuleNotFoundError: No module named 'names_comparator' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'names-dataset'
ModuleNotFoundError: No module named 'names-dataset'  Hi, My... 'names-dataset' How to remove the ModuleNotFoundError: No module named 'names-dataset' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'names-gen'
ModuleNotFoundError: No module named 'names-gen'  Hi, My Python... 'names-gen' How to remove the ModuleNotFoundError: No module named 'names... have to install padas library. You can install names-gen python with following
ModuleNotFoundError: No module named 'names_translator'
ModuleNotFoundError: No module named 'names_translator'  Hi, My... named 'names_translator' How to remove the ModuleNotFoundError: No module named 'names_translator' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'names_translator'
ModuleNotFoundError: No module named 'names_translator'  Hi, My... named 'names_translator' How to remove the ModuleNotFoundError: No module named 'names_translator' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'russian-names'
ModuleNotFoundError: No module named 'russian-names'  Hi, My... 'russian-names' How to remove the ModuleNotFoundError: No module named 'russian-names' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'russian-names'
ModuleNotFoundError: No module named 'russian-names'  Hi, My... 'russian-names' How to remove the ModuleNotFoundError: No module named 'russian-names' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'standard-names'
ModuleNotFoundError: No module named 'standard-names'  Hi, My... named 'standard-names' How to remove the ModuleNotFoundError: No module named 'standard-names' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'classification-names'
ModuleNotFoundError: No module named 'classification-names'  Hi...: No module named 'classification-names' How to remove the ModuleNotFoundError: No module named 'classification-names' error? Thanks   Hi
ModuleNotFoundError: No module named 'color-names'
ModuleNotFoundError: No module named 'color-names'  Hi, My Python... 'color-names' How to remove the ModuleNotFoundError: No module named 'color-names' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'distro-names'
ModuleNotFoundError: No module named 'distro-names'  Hi, My Python... 'distro-names' How to remove the ModuleNotFoundError: No module named 'distro-names' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'django-names'
ModuleNotFoundError: No module named 'django-names'  Hi, My Python... 'django-names' How to remove the ModuleNotFoundError: No module named 'django-names' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'flake8-variables-names'
ModuleNotFoundError: No module named 'flake8-variables-names'  Hi...: No module named 'flake8-variables-names' How to remove the ModuleNotFoundError: No module named 'flake8-variables-names' error? Thanks   Hi
ModuleNotFoundError: No module named 'gen-names'
ModuleNotFoundError: No module named 'gen-names'  Hi, My Python... 'gen-names' How to remove the ModuleNotFoundError: No module named 'gen-names' error? Thanks   Hi, In your python environment you
ModuleNotFoundError: No module named 'grill-names'
ModuleNotFoundError: No module named 'grill-names'  Hi, My Python... 'grill-names' How to remove the ModuleNotFoundError: No module named 'grill-names' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'human-names'
ModuleNotFoundError: No module named 'human-names'  Hi, My Python... 'human-names' How to remove the ModuleNotFoundError: No module named 'human-names' error? Thanks   Hi, In your python environment
ModuleNotFoundError: No module named 'i3-workspace-names'
ModuleNotFoundError: No module named 'i3-workspace-names'  Hi, My... named 'i3-workspace-names' How to remove the ModuleNotFoundError: No module named 'i3-workspace-names' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'my-names-lib-x'
ModuleNotFoundError: No module named 'my-names-lib-x'  Hi, My... named 'my-names-lib-x' How to remove the ModuleNotFoundError: No module named 'my-names-lib-x' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'my-names-lib-x'
ModuleNotFoundError: No module named 'my-names-lib-x'  Hi, My... named 'my-names-lib-x' How to remove the ModuleNotFoundError: No module named 'my-names-lib-x' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'my-names-lib-x'
ModuleNotFoundError: No module named 'my-names-lib-x'  Hi, My... named 'my-names-lib-x' How to remove the ModuleNotFoundError: No module named 'my-names-lib-x' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'nose_runnable_test_names'
ModuleNotFoundError: No module named 'nose_runnable_test_names'  Hi...: No module named 'nose_runnable_test_names' How to remove the ModuleNotFoundError: No module named 'nose_runnable_test_names' error? Thanks  
ModuleNotFoundError: No module named 'nose_runnable_test_names'
ModuleNotFoundError: No module named 'nose_runnable_test_names'  Hi...: No module named 'nose_runnable_test_names' How to remove the ModuleNotFoundError: No module named 'nose_runnable_test_names' error? Thanks  
ModuleNotFoundError: No module named 'nose_runnable_test_names'
ModuleNotFoundError: No module named 'nose_runnable_test_names'  Hi...: No module named 'nose_runnable_test_names' How to remove the ModuleNotFoundError: No module named 'nose_runnable_test_names' error? Thanks  
ModuleNotFoundError: No module named 'python-greek-names'
ModuleNotFoundError: No module named 'python-greek-names'  Hi, My... named 'python-greek-names' How to remove the ModuleNotFoundError: No module named 'python-greek-names' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'ssa_baby_names'
ModuleNotFoundError: No module named 'ssa_baby_names'  Hi, My... named 'ssa_baby_names' How to remove the ModuleNotFoundError: No module named 'ssa_baby_names' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'taxon_names_resolver'
ModuleNotFoundError: No module named 'taxon_names_resolver'  Hi...: No module named 'taxon_names_resolver' How to remove the ModuleNotFoundError: No module named 'taxon_names_resolver' error? Thanks   Hi
ModuleNotFoundError: No module named 'bible-male-names'
ModuleNotFoundError: No module named 'bible-male-names'  Hi, My... named 'bible-male-names' How to remove the ModuleNotFoundError: No module named 'bible-male-names' error? Thanks   Hi, In your

Ads