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 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 100 String Programming and Coding Interview Questions

Strings in java  – string in java is a important data type . In this article we will discuss java

Continue reading
January 21, 2015 javavogue

Generate Combination in java

public class Combination {      void doCombination(char []str,int start,int end){         char []data=new char[3];      int i=0;      int r=3;//

Continue reading

Posts navigation

1 2 Next Posts»

Recent Posts

  • Java Program to display student details Using Class and Object
  • TreeMap floorEntry() method in Java
  • Check If Int is Null In Java
  • Java Math min() method example
  • TreeMap ceilingKey() method in Java

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
  • How to Reload Changes Without Restarting the Server – Spring Boot
  • No converter found for return value of type: org.springframework.http.converter.HttpMessageNotWritableException: No converter found
  • Spring Boot @ConfigurationProperties Property Validation
hi