MSK Technologies

Home
Practice Programs
Java Programs Python Programs Java Quiz
Pages
Python Java Material PLSQL Material
Search A Job

Write a StringBuilder replace() Program

  1. Home
  2. Java Programs

Write a StringBuilder replace() Program

Write a StringBuilder replace() Program

Program
import java.util.Scanner;
public class Main
{
    public static void main(String args[])
    {
        String s1;
        Scanner sc=new Scanner(System.in);
        System.out.println("Enter String : ");
        s1=sc.nextLine();
        StringBuilder sb1=new StringBuilder(s1);
        System.out.println(sb1.replace(1,7,"kumar"));
    }
}


Output:

Enter String :Sateesh
Skumar


Strings Handling In Java



More Questions


210 . Write a StringBuilder replace() Program
211 . Write a Java-program to Count the number of vowels in a given string ?
212 . Write a Java-program to Count the number of Consonants in a given string ?
213 . Write a Java-program to Count the number of spaces in a given string
214 . Write a Java-program to Count the number of special characters in a given string ?
215 . Write a Java-program to Count the number of letters in a given string ?
216 . Write a Java-program to Count the number of Numbers in a given string ?
217 . Write a Java-program to Remove vowels in a given string ?
218 . Write a Java-program to Remove consonants in a given string ?
219 . Write a Java-program to Remove special characters in a given string ?
220 . Write a Java-program to Remove spaces in a given string ?


Interview Questions

Java Interview Questions

Python Interview Questions

Oracle Interview Questions

100 Most Asked Java Interview Questions and Answers

HR Interview Questions and Answers

Top 50 OOPS Interview Questions & Answers

Apply For The Job

Apply For Job

Java Material

Python Material

PLSQL Material

.Net Material

Java Practice Programs

400 Java Programs

Java Practice Programs

Write a Java program that takes five numbers as input to calculate and print the average of the numbers

Write a java Program to check given matrix is null matrix

Write a Java program and compute the sum of the digits of an integer

Write a Java program to convert a binary number to decimal number

Write a java program to Find the index of the smallest number in an array

Python Practice Programs

Write a Python program to remove duplicates from a list

Write a Python Program to Check Prime Number.

Write a python program to print flatten a nested list

Write a Python program to test whether a passed letter is a vowel or not.

Write a python program to adding a thousand separator

Interview Questions

Java Interview Questions

Python Interview Questions

Oracle Interview Questions

100 Most Asked Java Interview Questions and Answers

HR Interview Questions and Answers

Top 50 OOPS Interview Questions & Answers

Java Quiz

Java Quiz - 19

Java Quiz - 23

Java Quiz - 14

Java Quiz - 12

Java Quiz - 10

Courses
Java Python PLSQL .Net ADO.Net About Us
Quick Links
Daily Use English Sentences Daily General Knowledge General Knowledge Latest Update Inventions and Inventors జనరల్ నాలెడ్జ్ General Knowledge Spoken English Spoken Hindi GK Hindi Telugu Facts Unknown Facts Psychology Facts Motivation Quotes విటమిన్ - సి,డి,ఇ,కె Android
Spiritual
రాధాకృష్ణ భగవద్గీత Motivation Quotes Slokas Talapatra Nidhi ఆధ్యాత్మిక భక్తి ప్రపంచం Sadhguru Sai Motivation Quotes గౌతమ బుద్ధుడు Bhagavad Gita Quotes
Newsletter

Dolor amet sit justo amet elitr clita ipsum elitr est.

© sateeshm, All Right Reserved. Designed By sateeshm
Home Help FQAs