Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
This is a free help Forum for Indian Students.
Complete IIT AIEEE ICSE ISC PMT help forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Complete IIT AIEEE ICSE ISC PMT help forum

Complete help forum for students preparing for icse iit aieee cbse pmt and other related exams.Stay updated about all 2011 exams.
 
HomeHome  PortalPortal  SearchSearch  Latest imagesLatest images  RegisterRegister  Log in  India NewsIndia News  
Keywords
question 2010 UNION ICSE RESULT graph computer papers SELECT CLASS 2006 2009 2004 YEAR paper 2007 physics science prelim CASE
Latest topics
» Nitration of aniline - IIT JEE 2018 Advanced - solved
Program to shift letters of a String and to generate output EmptyFri Jun 08, 2018 2:34 am by adianadiadi

» Diamagnetic - Paramagnetic - Ni(CO)4, [Ni(CN)4]2- and [NiCl4
Program to shift letters of a String and to generate output EmptyFri Apr 06, 2018 1:05 am by adianadiadi

» IIT JEE chemistry solved interactive question paper
Program to shift letters of a String and to generate output EmptySun Oct 29, 2017 12:11 pm by adianadiadi

» IIT JEE 2015 SOLVED QUESTION PAPER
Program to shift letters of a String and to generate output EmptyWed Oct 19, 2016 1:44 pm by adianadiadi

» IIT JEE chemistry solved questions
Program to shift letters of a String and to generate output EmptySat Jul 18, 2015 6:15 pm by adianadiadi

» General Description of Chinese Market for Foaming Agent ADC
Program to shift letters of a String and to generate output EmptyFri May 09, 2014 2:09 pm by happybaicaitou

» How to get Lowest Cost MBBS Admission?
Program to shift letters of a String and to generate output EmptyMon Feb 24, 2014 6:39 pm by MENTOR 2014

»  girl boy vashikaran specialist agori baba ji +91-9461165
Program to shift letters of a String and to generate output EmptyTue Jan 21, 2014 6:00 pm by krshastri

»  STRONG LOST LOVE SPELL +91-9461165176
Program to shift letters of a String and to generate output EmptyTue Jan 21, 2014 6:00 pm by krshastri

Top posters
abhas
Program to shift letters of a String and to generate output Vote_lcapProgram to shift letters of a String and to generate output Voting_barProgram to shift letters of a String and to generate output Vote_rcap 
Anu..i luv icse...:)
Program to shift letters of a String and to generate output Vote_lcapProgram to shift letters of a String and to generate output Voting_barProgram to shift letters of a String and to generate output Vote_rcap 
G-7
Program to shift letters of a String and to generate output Vote_lcapProgram to shift letters of a String and to generate output Voting_barProgram to shift letters of a String and to generate output Vote_rcap 
siya
Program to shift letters of a String and to generate output Vote_lcapProgram to shift letters of a String and to generate output Voting_barProgram to shift letters of a String and to generate output Vote_rcap 
Candy
Program to shift letters of a String and to generate output Vote_lcapProgram to shift letters of a String and to generate output Voting_barProgram to shift letters of a String and to generate output Vote_rcap 
jOhNy
Program to shift letters of a String and to generate output Vote_lcapProgram to shift letters of a String and to generate output Voting_barProgram to shift letters of a String and to generate output Vote_rcap 
Apurva
Program to shift letters of a String and to generate output Vote_lcapProgram to shift letters of a String and to generate output Voting_barProgram to shift letters of a String and to generate output Vote_rcap 
WinRrule
Program to shift letters of a String and to generate output Vote_lcapProgram to shift letters of a String and to generate output Voting_barProgram to shift letters of a String and to generate output Vote_rcap 
ambili
Program to shift letters of a String and to generate output Vote_lcapProgram to shift letters of a String and to generate output Voting_barProgram to shift letters of a String and to generate output Vote_rcap 
saif
Program to shift letters of a String and to generate output Vote_lcapProgram to shift letters of a String and to generate output Voting_barProgram to shift letters of a String and to generate output Vote_rcap 



Search if you can't find it here

Program to shift letters of a String and to generate output

View previous topic View next topic Go down
AuthorMessage
saif
Active member
Active member



Program to shift letters of a String and to generate output Vide
PostSubject: Program to shift letters of a String and to generate output Program to shift letters of a String and to generate output EmptyWed Feb 24, 2010 1:19 am

Program to shift letters of a String and to generate output
as shown

Enter string
SAIF_AHMAD
Required outputs
DSAIF_AHMA
ADSAIF_AHM
MADSAIF_AH
HMADSAIF_A
AHMADSAIF_
_AHMADSAIF
F_AHMADSAI
IF_AHMADSA
AIF_AHMADS
SAIF_AHMAD


import java.io.*;
class strshift
{
public static void main(String args[])throws IOException
{
System.out.println("Enter string");
BufferedReader obj =new BufferedReader(new InputStreamReader(System.in));
String s=obj.readLine();
int l=s.length();
System.out.println("Required outputs");
for(int a=0;a<l;a++)
{
s=s.charAt(l-1)+s.substring(0,l-1);
System.out.println(s);
}
}
}
Back to top Go down

Program to shift letters of a String and to generate output

View previous topic View next topic Back to top
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Complete IIT AIEEE ICSE ISC PMT help forum :: Computer :: Computer help forum-