Blog for Java,CoreJava,Collections Framework,Java Interview Questions ,Top Java Interview Questions ,Collections Interview Questions ,Java Programs,Android tutorial,Android Studio
Tuesday, 27 January 2015
Program for Shifting characters in a String eg. String "abcde" should be printed as "eabcd"
import java.util.Scanner;
public class SB
{ public static void main(String []args) { Scanner in = new Scanner(System.in);
System.out.println("Enter a string to shift characters");
String test = in.nextLine();
No comments:
Post a Comment