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="http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&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 com.milind.mr.doc.test; /** * * @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 java.io.IOException; import java.util.StringTokenizer; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.DoubleWritable; import org.apache.hadoop.io.Text; 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”

MapReduce code for addition of numbers per line

/* * 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 java.io.IOException; import java.util.StringTokenizer; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.io.IntWritable; import org.apache.hadoop.io.Text; 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 addition of numbers per line”

NetBeans IDE Installation on Ubuntu 14.04

Download NetBeans IDE through web browser from https://netbeans.org/downloads/ 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.  

RECORD INSERTION IN MYSQL TABLE

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. https://milindjagre.wordpress.com/2014/04/25/mysql-database-connection-through-java/   Once you establish the connection with MySQL database, all you needContinue reading “RECORD INSERTION IN MYSQL TABLE”

MYSQL DATABASE CONNECTION THROUGH JAVA

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”

COMMAND LINE ARGUMENTS

  The concept that we are going to talk today is about printing i.e. accessing the elements or arguments that we enter on the command line in the runtime. There are plenty of ways to implement this thing. For naïve programmers, we can use the simple editor and then run the program on the commandContinue reading “COMMAND LINE ARGUMENTS”

The difference between float and double

Thank you. We all know float and double as the primitive datatypes of any programming language. But plenty of us still get confused regarding the basic meaning of these datatypes. In technical terms, float is known as the Single precision floating point datatype whereas double is considered to be double precision floating point datatype.  Continue reading “The difference between float and double”