Posts

Print Each Character No of Times Based on Next Occurrence of Numeric Value in a given String using Java Program Eg 1: Input: a1b10 Output: abbbbbbbbbb

Image
Write a program to give the following output for the given input Eg 1: Input: a1b10 Output: abbbbbbbbbb Eg: 2: Input: b3c6d15 Output: bbbccccccddddddddddddddd The number varies from 1 to 99. Program in JAVA: public class PrintString { public static void main(String[] args) { String n="a10b5c03"; char []a; char charValue = 0; int i,j,count=0,numberValue=0; a=n.toCharArray(); for(i=0;i<a.length;i++) { if(Character.isDigit(a[i])) { while(Character.isDigit(a[i])) { numberValue=Character.getNumericValue(a[i]); count=(count*10)+numberValue; i++; if(i>(a.length-1)) { i--; break; } } while(Character.isAlphabetic(a[i])) { i--; break; } for(j=0;j<count;j++) { System.out.print(charValue+" "); } count=0; } else { charValue=a[i]; } } } } Output:

Print the String in X format/pattern in Java Programming

Image
In this article we are going to see, how to print the given string in x format in Java programming. I am take following example to tell how its working. Input: 12345 Output: 1      5   2  4     3   2  4 1      5 To iterate the given string one by one, I am converting the String value to character array type. and then I am assigning the value [a.length()-1] to variable 'j' [i.e  J=4]. Now I am using 'for loop' to iterate by setting value for 'i' [i.e I=0]. inside a loop again I am calling another 'for loop'. so that I can get each character array value [i.e charArray[0]=1,charArray[1]=2,etc] each time the value for 'i' is increase. Initially 'i' value 0 and 'j' value 4 for above given example input [i.e i=0 and  j=4]. Inside the nested loop (i.e for(k=0;k<a.length();k++) ), I am checking 'i' value and 'k' value is equal. if it is equal then print charArray[k] (i.e charArray[0]) otherwise print...

NoxPlayer free download - Android Emulator to Run on PC

Image
I would recommend this article for the People who want to run android application on their computer. I have given official website link to download NoxPlayer software free. Below link is official page to download the latest version of the software. https://en.bignox.com/ There are number of android emulator is available free to download in internet but I would recommend this software is the best one among them.

The Weeknd and Kendrick's Pray for me Song Lyrics

Image
Pray for me song lyrics: ================= [Intro] Ooh, ooh, ooh, ooh [Verse 1: The Weeknd] I'm always ready for a war again Go down that road again It's all the same I'm always ready to take a life again You know I'll ride again It's all the same (ooh, ooh, ooh) Tell me who's gon' save me from myself When this life is all I know Tell me who's gon' save me from this hell Without you, I'm all alone [Chorus: The Weeknd] Who gon' pray for me? Take my pain for me? Save my soul for me? 'Cause I'm alone, you see If I'm gon' die for you If I'm gon' kill for you Then I'll spill this blood for you, hey [Verse 2: Kendrick Lamar] I fight the world, I fight you, I fight myself I fight God, just tell me how many burdens left I fight pain and hurricanes, today I wept I'm tryna fight back tears, flood on my doorsteps Life a livin' hell, puddles of blood in the streets Shooters on top of ...

Link Aadhaar with mobile number using Toll-free number

In this article we are going to see how to link your Aadhaar number with mobile number. Highlights :     1. Central government announced that if you don't link your Aadhaar number with mobile on or before 31st March 2018, then mobile number won't be work.     2. By calling Toll-free number, We can link your Aadhaar number with mobile number.     3. This toll-free features called IVRS. This IVRS features introduced so far by Vadafone, Idea, Aircel and Airtel. Will introduce this feature soon in Jio and BSNL. Let's see how to do it this step by step approach: - Toll-free number is 14546 . -  Call to this 14546 from the registered number with Aadhaar. - In that call you will hear computer recorded voice for registration. - before you calling to this toll-free number, make sure that your Aadhaar card with you. - then follow the instructions to complete the registration. I hope that you got some usefull content....

New ₹10 Rupees Note introduced. Check out how it is looks

Image
In this article we going to see the image of new ₹10 currency note introduced by RBI. The reserve bank of India released new ₹10 currency note on friday. The note will be Mahatma Gandhi series and with signature of RBI governor Dr Urjit R Patel.  RBI also confirmed that all the old ₹10 currency notes will be legal tender. Img source: Google Highlights: The note colour will be chocolate brown colour. The ₹10 currency note dimensions will be 63mm ×123mm. Front sides will bear a portrait of Mahatma Gandhi at the centre Back sides will also have a Swachh Bharat logo with slogan Reference:  For More Information Click Here

Get ₹50 cashback for Link Bank account with Paytm

Image
In this article we going to see that how get cashback ₹50 for link bank account with Paytm. Paytm annouces that you link bank account  with Paytm and do 1st transaction then you get cashback of ₹50 rupees in your Paytm wallet.  This offer is limited period only so make use of it before it get expired. For information visit official link here  Cashback details