Search
 
SCRIPT & CODE EXAMPLE
 

TYPESCRIPT

java a program that converts letters to their corrosponding telephone digits

public class digits

{
    public static void main (String letter)

    {

        if (letter=="A" || letter=="B" || letter== "C")
         {
            System.out.println("1");
         }

         else if(letter=="D" || letter=="E" || letter== "F")
         {
            System.out.println("2");
         }

        else if (letter=="G" || letter=="H" || letter== "I")
         {
            System.out.println("3");   
         }
         else if (letter=="J" || letter=="K" || letter== "L")
         {
            System.out.println("4");    
         }
         else if (letter=="M" || letter=="N" || letter== "O")
         {
            System.out.println("5");    
         }    

        else if (letter=="P" || letter=="Q" || letter== "R" || letter== "S")
         {
            System.out.println("6");    
         }    

        else if (letter=="T" || letter=="U" || letter== "V")
         {
            System.out.println("7");    
         }    

         else if (letter=="W" || letter=="X" || letter== "Y" || letter== "Z")
         {
            System.out.println("9");    
         }    


    }

}
Comment

PREVIOUS NEXT
Code Example
Typescript :: optional or required depending on param is true react typescript 
Typescript :: components swift separator vo sequenc of characters 
Typescript :: python arbitrary arguments *args mcqs 
Typescript :: mongoose get all documents big 
Typescript :: jquery to typescript converter online 
Typescript :: test plan vs qa plan 
Typescript :: site:community.nxp.com dts gpio output high active 
Typescript :: searching filtering ibraries in angular 
Typescript :: calculate checksum typescript 
Typescript :: mixins with parameters typescript 
Typescript :: how to deduct user points when he buy something laravel 
Typescript :: sts shortcut to resolve error 
Typescript :: whats the next sonic game 
Typescript :: struts 2 rest api example 
Typescript :: check if a user already exists firebase realtime database react native 
Typescript :: update object single property of firebase database object in angular 
Typescript :: how to call an action from another action in redux 
Typescript :: how to set references in sequelize type config/options 
Typescript :: What are the tables in test plans? 
Typescript :: creating different objects in node.js 
Typescript :: check if that inex exisits array c# 
Typescript :: mac mini late 2010 
Typescript :: find number of digits that changed after addition of 1 
Cpp :: arduino uno hello world 
Cpp :: c++ - include all libraries 
Cpp :: right side pattern triangle c++ 
Cpp :: c++ copy file to another directory 
Cpp :: string to size_t cpp 
Cpp :: how to sort in descending order c++ 
Cpp :: file descriptor linux c++ 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =