Java Program to Count Occurrence of given character in String

Count Occurrences Of Given Character In String in java

In this tutorial we will learn how to write program in Java to count occurrence of character in a String. Also Read this:  C program to count the occurrence of a character in String. How this Java program will behave? This Java program will take a string and a character as an input. And it … Read more

Java Program to remove a given character from string

Remove A Given Character From String in java

In this tutorial you will learn writing program for how to remove a character from a string in java. Before start writing this program you should know how to work with String and character in Java. Also Read This: C program to remove a character from String. How this Java program will behave? This program … Read more

Rectangle Pattern Program In Python Most asked in interview

And below Python concepts are used to print that patterns For Loop While Loop if..else 1). Program to print Solid Rectangle using star(*) in Python print("This is Rectangle program") rows = int(input("Enter number of rows: ")) columns = int(input("Enter number of columns: ")) for i in range(0,rows): for j in range(0,columns): print("*",end='') print() Output 2). … Read more

Rhombus Pattern Program In Python Most Asked in Interview

And below Python concepts are used to print that patterns For Loop While Loop if..else 1). Program to print right Inclined Solid Rhombus using star(*) in Python n = int(input("Enter the number of rows for Rhombus:")) for i in range(0,n): for j in range(1,n-i): print(" ",end='') for k in range(0,n): print("*",end='') print() Output 2). Program … Read more

Diamond Pattern programs in Python that most asked in Interview

And below Python concepts are used to print that patterns For Loop While Loop if..else 1). Program to print half pyramid pattern using star(*) in Python n = int(input("enter the number of row for half diamond:")) for i in range(0,n): for k in range(0,i+1): print("*",end='') print() for i in range(n,0,-1): for j in range(i-1,0,-1): print("*",end='') … Read more

Pyramid Pattern Program In Python that most asked in Interview

Ans:  And below Python concepts are used to print that patterns For Loop While Loop if..else 1). Program to print half pyramid pattern using star(*) in Python n = int(input("Enter the number of rows for half pyramid:")) for i in range(0, n): for j in range(0, i+1): print('*',end='') print() Output 2). Program to print inverted … Read more