java how can i loop the string until it reaches its length(strings) -


  string = "hello"; Int length = 10; // Length is variable   

I do not know how this loop 10 times this string "Hello" shows the string index bound exception depending on your character

Requried Output: Hellohelloh

  string result = ""; For (int i = 0; i    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -