
Sunday, August 23, 2015
Method References in Java8

Method References:
Method references refers to methods or constructors without invoking them.
We can use lambda expressions to create anonymous methods.
Sometimes, however, a lambda expression does nothing but call an existing method.
In those cases, it's often clearer to refer to the existing method by name.
Using Method references refer to the existing method by name, they are compact, easy-to-read lambda expressions...
Write a Java Program to convert String value into Integer value with out using parseInt() method.
In this post, we are going to learn how to convert string value into integer value with out using the parseInt() method.package com.ranga;/** * * This class is used to convert the String value into Integer. * @author Ranga Reddy * @version 1.0 * */public class StringToInteger { public static void main(String[] args) { String string = "123456"; System.out.println("String value: "+ string); int integerValue = convertStringToInteger(string); System.out.println("Integer value: "+ integerValue); } ...
Thursday, August 20, 2015
RESTful API using Spring Boot and Cassandra
Unknown Thursday, August 20, 2015 Cassandra, Programs, Spring Boot, Spring-Data, Utilities 5 comments
In this post, we are going to learn how to implement RESTful web services using Spring Boot and Cassandra db.Project Structure:Tools & Technologies:Java 8Maven 3.0.3Spring Boot 1.2.5.RELEASECassandra Database 2.1.8Spring data cassandra 1.2.2.RELEASECassandra Keyspace and Table Creation:cqlsh> create keyspace "ranga" with replication = {'class': 'SimpleStrategy', 'replication_factor': '1'};cqlsh:system_traces> use ranga;cqlsh:ranga>...