Java Programming Archive
19 Nov 2017
Retrieve tweets using multiple twitter accounts for the search API

You can read my last article before you proceed with further, where you can read how to use Twitter4J API which enables us to fetch more then 100 tweets. The idea is simple. Twitter search API allows the use of multiple accounts. You may create multiple accounts for search API and switch the sessions when one
18 Nov 2017
How to retrieve more than 100 tweets with the Twitter API and Twitter4J

The twitter4j wraps the twitter API and provides you access to public_timeline and retrieve latest tweets. The twiter API returns only the last 20 tweets. For retrieving old tweets you may have to request the timeline a number of times. Twitter does not provide any other option (I guess you can use the streaming API
13 Oct 2017
JShell – Java 9 interpreter (REPL) – Getting Started with Examples and Video Tutorial

Why JShell – Java 9 interpreter (REPL)? In order to evaluate your statements instantly without creating a project and compiling whole source code, Oracle recently introduced JShell in Java 9. JShell is a similar tool like other compiled language own for statements interpretation, sometimes called REPL (read-eval-print loop). It helps programmer to quickly evaluate code
30 Sep 2017
Java 9 features – Collections Update

Finally, Java 9 is out and it’s high time to go through and discuss the issues of previous JDK releases and discuss the benefits of recently release JDK 9 features. Changing in Collections is one of the features that is of particular interest to developers and is discussed in this article. Some of the previous
24 Sep 2017
Java 9 Support for Eclipse IDE and 1st Java 9 Example

Recently java 9 has been released and support to make your eclipse IDE ready to build, debug and run Java 9 code. Java 9 applications are available at Eclipse Marketeplace and you may install it from Marketeplace client in the Eclipse IDE by going to Help-> Eclipse Marketeplace or by dragging and dropping the following
01 Aug 2017
Advance Streams Operations

Plethora of different operations available with streams. Some basic and very important operations are already been discussed in previous article (read it from here). Let’s see how collect, flatMap and reduce operations works. How to use Collect operation in streams? Collect is used to transform the elements of the stream into a different data structures
01 Aug 2017
Streams in Java

Java stream API is available in java 8 and is completely different from InputStream and OutputStream of java I/O. Streams are playing a vital role to bring functional programming to java. In this tutorial you will learn the most powerful operations offered by streams API such as reduce, collect, flatMap and parallel streams. Before starting
31 Jul 2017
Functional Interfaces in Java

Java 8 introduced lambda expressions, which allowed us to write short and simple code using default interface methods, lambda expressions, method reference and repeatable annotations. As we know java is a strongly typed language and it is mandatory to declare types but designers of lambda expressions omitted types when declaring the lambda expressions. To represents
19 Jul 2017
Interfaces in Java

Interfaces in java are same like an abstract class, it does not attribute definition and all of its methods are abstract. An interface don’t have constructors and can’t be instantiated. From Java 8 onward non abstract methods can be included in the interface by using default keyword. These methods are known as default or extension
16 Jul 2017
Collections in Java

Arrays are used in java to store several objects. The issue with array is that it does not support dynamic allocation. It has a fixed length which is not changeable once it is declared. Moreover, array is a very simple linear structure and many applications require more flexible and complex structure such as linked list,