Top 10 Twitter Trending Topics using JAVA twitter4j API

Hi friends, Today we are going to find out the Top 10 Worldwide Trending Topics on Twitter with the help of twitter4j Java API. The step by step process can be depicted in below picture. It shows the step by step algorithm which you can use in order to show top 10 Worldwide Trending Twitter Topics.Continue reading “Top 10 Twitter Trending Topics using JAVA twitter4j API”

Twitter Sentiment Analysis using OpenNLP JAVA API

Hi, everyone ! Hope everyone is having a great time. In this post, we are going to see the TWITTER SENTIMENT ANALYSIS by using JAVA as a programming language. We are using OPENNLP Maven dependencies for doing this sentiment analysis. Following is that Maven Dependency. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="; xmlns:xsi="; xsi:schemaLocation=""&gt; <modelVersion>4.0.0</modelVersion> <groupId>com.mycompany</groupId>Continue reading “Twitter Sentiment Analysis using OpenNLP JAVA API”

Read Word Document using JAVA

Hi guys, Following code will enable us to read Microsoft Word Document file using JAVA API. /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package; /** * * @author milindContinue reading “Read Word Document using JAVA”

MapReduce code for average of all numbers in a file

/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.github.milind; import; import java.util.StringTokenizer; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import; import; import org.apache.hadoop.mapreduce.Job; import org.apache.hadoop.mapreduce.Mapper; import org.apache.hadoop.mapreduce.lib.input.FileInputFormat; import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat; /**Continue reading “MapReduce code for average of all numbers in a file”

NetBeans IDE Installation on Ubuntu 14.04

Download NetBeans IDE through web browser from open new terminal window cd Downloads sudo chmod +x netbeans* ./netbeans* Above command will open a GUI which will guide you to install netbeans step by step.  


  Following is the simple program with which you can print the hindi language characters using JAVA programming language. package printhindi;public class Hindi {     public static void main(String args[]) {      char c;      for (c = 2309; c < 2360; c++            System.out.print(” ” + c); } }    Continue reading “HOW TO PRINT HINDI CHARACTERS USING JAVA”


In this post, we are going to how to add the jar files to the eclipse project. First thing that we need to achieve this is to download the jar file that we want to add/export into our eclipse project. After downloading the desired jar file, we need to create the eclipse project in whichContinue reading “ADD JARS TO ECLIPSE”


In my last update on regular expressions i.e. regex, I mentioned that regex have the group thing which is used extensively by java people in order to enhance its productivity. So in this update, we are going to talk about the groups which are used in regular expressions. The concept of groups is quite simple.Continue reading “GROUP IN REGEX”


We are going to insert the data into mysql table ‘sample’. We will use Java programming language for doing the same.   In case you missed how to connect your database with the JAVA programming language, you should refer this link below.   Once you establish the connection with MySQL database, all you needContinue reading “RECORD INSERTION IN MYSQL TABLE”


MySQL can be connected with the help of JAVA programming language. For this we require a driver which will enable us to create a connection to connect to MySQL database. A connection object is created with the help of getConnection() method of DriverManager class. The standard syntax of this getConncetion() method contains one, two andContinue reading “MYSQL DATABASE CONNECTION THROUGH JAVA”