Friday , December 15 2017

Recent Posts

December, 2017

  • 14 December

    Hibernate Download and Setup

    In this tutorials, I am going to show you some basic things like where do we download the hibernate and how to use in java application. Hibernate Download : Following are the simple steps to download and install hibernate on your local machine. It is always recommended to use latest …

    Read More »
  • 13 December

    Hibernate sql dialect list

    Here I am going to share all Hibernate sql dialect list, might be helpful some one. Hibernate sql Dialect (hibernate.dialect): DB2 : DB2 AS/400 : DB2 OS390 : PostgreSQL : MySQL5 : MySQL5 with InnoDB : MySQL with MyISAM : Oracle (any version) : Oracle 9i : Oracle 10g : …

    Read More »
  • 11 December

    Java8 Concatenate Arrays Example using Stream

    In this tutorial, I am going to show you how to concatenate arrays using Java8 streams. Java8 Concatenate Arrays : Concatenate Arrays using flatMap: Concatenate using Java API: Happy Learning 🙂

    Read More »
  • 10 December

    Java how to convert ArrayList to Array Example

    In this tutorial, I am going to show you how to convert Java ArrayList to Array. Java ArrayList to Array : We can convert an ArrayList to array in below ways. Java list.toArray() list.toArray() returns array of objects (Object[]). Java list.toArray(T[]) We can define the type of an array while …

    Read More »
  • 9 December

    Java String split example

    In this tutorial, I am going to show you how to use split Java string. Java String split : The Java String provides a split() method to split the string into different parts by using delimiter or regular expression. Java String Split delimiter : On the above example, We split …

    Read More »
  • 8 December

    Java String to int conversion Example

    In this tutorial we are going to see how to convert Java string to int. Java String to int : We can convert string to int in java using Integer Wrapper class. The Integer class given two different methods to convert String to int. Integer.parseInt(“”); Integer.valueOf(“”); The above both methods …

    Read More »
  • 7 December

    Java MD5 Encryption Example

    In this tutorial, I am going to show you how to use Java MD5 Encryption. Java MD5 Encryption : The below example generate a MD5 encryption (generating hash value) for a given password (String). Reference : MD5 wiki Java MessageDigest

    Read More »
  • 4 December

    Java 8 Array contains a specific value ?

    In this tutorials I am going to show you how to check an array contains a specific value in Java 8. Array contains a specific value : Happy Learning 🙂

    Read More »
  • 2 December

    Java 8 how to remove duplicates from list

    In this tutorials, I am going to show you how to remove duplicate elements from list using Java 8 syntax. How to remove duplicates from list : Department.java Here I am going to prepare a list with duplicate department names and remove those duplicate departments. Removing Duplicates by assigning List …

    Read More »
  • 1 December

    Java 8 walk How to Read all files in a folder

    In this tutorial, I am going to show you how to read all files in a folder using Java 8 walk syntax. Java 8 How to Read all files in a folder : Java 7 introduced Files class that consists exclusively of static methods that operate on files, directories, or …

    Read More »

November, 2017

  • 30 November

    Resolve NullPointerException in Collectors.toMap

    In the previous example we have discussed how to convert the list to map in Java 8. But When we convert the List to Map we need to be a bit careful about the entries in map. If the list contains any null values, the toMap() method will throw NullPointerException …

    Read More »
  • 29 November

    Java Graphics2D Class Example

    In this tutorials, we are going to see how to use Java Graphics2D class. Java Graphics class is a abstract base class, it allows the application to draw something on different AWT or Swing components. Java Graphics2D Class : The Graphics2D Class is extended class of Graphics class, it provides …

    Read More »
  • 28 November

    Java JColorChooser Example

    In this example I am going to show you how to use apply different colors to swing components. Java JColorChooser is a class used display the color pane to pick the colors in different formats. Java JColorChooser : Output : Color Chooser : After Applying Color : RGB Color Picker …

    Read More »
  • 28 November

    How to use Java JSlider Example

    In this tutorials, I am going to show you how to create Java JSlider and how do we use. Java JSlider is a swing component that lets the user to select value by sliding a knob with in a bounded interval. Java JSlider Example : setMajorTickSpacing() : This method is …

    Read More »
  • 26 November

    Java JComboBox Editable Example

    In this tutorials, I am going to show you how to use Java JComboBox. Java ComboBox is a swing component that combines drop down with editable field. Java JComboBox : Output : Changing the Items : Editable JComboBox : We can make the JComboBox as editable by using setEditable(true) like …

    Read More »