• Register

Recent posts tagged strings

0 0 3 min.
Q. What is the return value of the string method lstrip()The string with all leading whitespaces removed.Q. The statement System.out.printf(“%3.1e“, 1234.56) outputs ___________.1.20E+03Q. To convert a StringBuilder object to a String, yo...
posted Jan 20 Lalit Kumar 1,240 points
0 0 1 min.
In this article, I am going to explain how to split a string by spaces in java by using string class split method. We can also split a string by using Pattern.compile(regex).splitAsStream(String) method and others.String class split methodApproachSup...
posted Nov 4, 2020 MallikaShaik672 500 points
0 0 1 min.
In this article, you will learn how to delete a character in a string in java. The character deletion may be of several replace() methods, but here I will explain a particular method of deleting char at any position.ApproachOne may use replace(), rep...
posted Nov 1, 2020 MallikaShaik672 500 points
0 0 2 min.
In this topic, we will learn and explore how can we capitalize on the first letter of each word in PHP .PHP has a variety of inbuilt functions to make things easy and in a quick manner. PHP has a variety of inbuilt functions to deal with strings whic...
posted Oct 30, 2020 abdullah_yasir 7,510 points
0 0 5 min.
Here are 3 simple methods to remove a substring from a string in python.while working with Python Strings, we can have problem in which we need to remove a substring from String. This is quite easy and many times solved before. But sometimes, we deal...
posted Oct 23, 2020 jaseera 100 points
0 0 2 min.
In this article, I will explain different methods to make you understand better, of using (==) for strings in java. We can use “ == “ in java, but it has few exceptions and is clearly stated belowApproachEqualsTo() MethodIn java, we can u...
posted Oct 23, 2020 MallikaShaik672 500 points
0 0 6 min.
                                what is the default initial value of a string?Crude Data Types:The Java programming language is statically-composed, which implies th...
posted Oct 22, 2020 James Steve 100 points
15 0 2 min.
I am going to explain the basics of JAVA relatable with strings and its advantages and disadvantages. This article mainly focuses on strings implies with the basics of any programming language.What is StringA string represents a text rather than...
posted Oct 17, 2020 MallikaShaik672 500 points
0 0 2 min.
 In this article, we will know about how to split a string in java. Java String split method is used to split a string into substrings by limiting given or regular expressions.As an example:String: sotan @ syrup Regular Expression: @ Output: {...
posted Oct 10, 2020 Hasnain_khan 100 points
0 0 1 min.
In this article, we will learn what the reasons for this error are and how to solve this error. To understand this error first you have to know what is a character literal.Character literal:A character literal is a type of literal that is used in pro...
posted Jul 19, 2020 Farkhanda Athar 3,890 points
5 1 2 min.
A string typically refers to a group or set of characters. That is, it’s a array of a character. It is easy to define string in php. You can define a string in any text, usually within single or double quotation. Example:Coding:1. <?php 2. ...
posted Apr 7, 2020 Tushar Shuvro 31,120 points
To see more, click for the full list of questions or popular tags.