Skip to content

Java Vogue

Java Tutorials

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

Author: javavogue

August 29, 2015 javavogue

java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException in cassandra

 I had got this exception many times when i had snapshot from cassandra. i try with different ways but there

Continue reading
August 26, 2015 javavogue

How to delete a non-empty directory in Terminal?

rm -rf myfolder It deletes all files and folders contained in the myfolder directory. Add sudo at the beginning of

Continue reading
August 26, 2015 javavogue

How do I delete all data in a Cassandra column family ?

  We can truncate  all rows from cassandra tables using truncate Example: cqlsh: test > TRUNCATE test.users ;  

Continue reading
August 26, 2015 javavogue

How to Convert Java Timestamp to MySQL timestamp vice versa

  How to Insert java time in mysql timestamp java.util.Date date = new Date(); Timestamp timestamp = new Timestamp(date.getTime()); preparedStatement.setTimestamp(1,

Continue reading
August 6, 2015 javavogue

How To Install and Use Memcache on Ubuntu

Memcached  is a general-purpose distributed memory caching system. It is often used to speed up dynamic database-driven websites by caching

Continue reading
July 4, 2015 javavogue

How To Convert Integer To String In Java

public class IntToString { public static void main(String[] args) { int num = 10; // method first String str1 =

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
June 19, 2015 javavogue

How to delete all elements from TreeMap

import java.util.Map; import java.util.TreeMap; public class TreeMapDeleteAll { public static void main(String[] args) { Map<Integer, String> tm = new TreeMap<Integer,String>();

Continue reading
June 19, 2015 javavogue

How to get entry set from TreeMap

import java.util.Map; import java.util.Map.Entry; import java.util.Set; import java.util.TreeMap; public class TreeMapEntrySet { public static void main(String[] args) { Map<Integer, String>

Continue reading
June 19, 2015 javavogue

How to get size of TreeMap

import java.util.Map; import java.util.TreeMap; public class TreeMapKeyCount { public static void main(String[] args) { Map<Integer, String> tm = new TreeMap<Integer,String>();

Continue reading

Posts navigation

«Previous Posts 1 … 7 8 9 10 11 … 35 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