Skip to content

Java Vogue

Java Tutorials

  • All Tutorials
  • Java
  • Java8
  • Spring Boot
  • Microservices
  • Spring
  • Hibernate
  • Reactjs
  • Interview Question
  • Contact

Category: string

December 2, 2015 javavogue

How to convert Byte array to String in Java

In our application sometime there is need of byte array. We can use byte array for encryption purpose . We

Continue reading
June 29, 2015 javavogue

How to find all occurrences of string in a string Java

 Find all occurrences of string in a string. for this we will use one loop and indexof() method public class

Continue reading
March 31, 2015 javavogue

Convert StringBuilder To String

 In this example firstly create a string builder and then convert it to string using toString() method. package com.javapro.string; public

Continue reading
March 29, 2015 javavogue

Convert String To Integer

 Convert string to a number in java public class ConvertStringToInteger { public static void main(String[] args) { String number=”123″; int

Continue reading
March 19, 2015 javavogue

Expand String

 Write A Function String expnadString(String x); string x=”1,2,3,6″; output : 1,2,3,4,5,6 x=1,….,4….,10 output: 1,2,3,4,5,6,7,8,9,10 public class ExpandMyString { public static

Continue reading
January 31, 2015 javavogue

How to Print Double Quotes in JAVA

how to print double quotes in java public class Display { public static void main(String[] args) { String str=”GANGA:”+””RIVER””; System.out.print(str);

Continue reading
January 24, 2015 javavogue

Check a string value is Integer or not in java

  Check a given string value is Integer or not in java private boolean isInteger(String str){ for (int i =

Continue reading
January 24, 2015 javavogue

Check ia string is hexadecimal number or not

  Check if a String is Hexadecimal number or not in java public boolean isHexNumber(String){ boolean flag; try { int

Continue reading
January 23, 2015 javavogue

Read File And Count Occurrence Of Word In Java

Read a file and count the occurrence of word in java import java.io.File; import java.io.FileReader; import java.io.BufferedReader; import java.io.InputStreamReader; import

Continue reading
January 21, 2015 javavogue

Top String Programs In Java

Top String Program In Java Check a string value is Integer or not in java. (Solution). Check  string is hexadecimal

Continue reading

Posts navigation

1 2 Next Posts»

Recent Posts

  • TypeScript Tutorial
  • Spring Boot – RESTful Web Service with POST Request in XML Example
  • Spring Boot – Example of RESTful Web Service with XML
  • Spring Boot @ConfigurationProperties Property Validation
  • How to Read value From application.properties in spring boot

Popular Posts

  • How to Read value From application.properties in spring boot
  • ‘Field required a bean of type that could not be found.’ error spring restful API
  • No converter found for return value of type: org.springframework.http.converter.HttpMessageNotWritableException: No converter found
  • How to Reload Changes Without Restarting the Server – Spring Boot
  • How to iterate through TreeMap
hi

Notice: ob_end_flush(): failed to send buffer of zlib output compression (0) in /home/javaprof/public_html/wp-includes/functions.php on line 4755