Please help I need to urgently write a program that will replace every character in a srting with a character which is found next to that character in your keyboard(with few asumptions and other rules..)eg. replace q with w ,t with y ,]with a asume shift is off and caps lock is off....
thanks for your response, please I am a beginning programmer at the moment I don't know how to do what you have ask me to do, "map - translator" but i think the loop will not be a problem. please can you help me with the code for the map. thanks
is it something of this nature please help me complete this code please thanks
import java.util.*;
public class Map{
* **
* * public static void main(String [] args){
* * * **
* * * * Scanner input = new Scanner(System.in);
* * * **
* * * * // an array of Map<String, Integer>
* * * * HashMap<String, Integer>[] hmsi= new HashMap[4];
*
* * * * // pupulate it * * * *
* * * * for (int i= 0; i < hmsi.length; i++)
* * * * hmsi[i]= new HashMap<String, Integer>();
*
* * }
//prompt user to enter character
System.out.println("Enter character to get the next keyboard value");
//read the character
ClientInput = input.next();
//print out the next keyboard character according to your the map above
System.out.println(map.get( new String( ClientInput ).charAt( 0 ) ) + " is the next character after " + ClientInput);
Bookmarks