Tags » Java

Netbeans and iReport

As of this post there is no iReport plugin for Netbeans 8.1 but we can download for 7.4 and it works.

Go to http://plugins.netbeans.org/plugin/4425/ireport and download iReport plugin. 32 more words

IReport

Connecting your App to a Wi-Fi Device

With the growth of the Internet of Things, connecting Android applications to Wi-Fi enabled devices is becoming more and more common. Whether you’re building an app for a remote viewfinder, to set up a connected light bulb, or to control a quadcopter, if it’s Wi-Fi based you will need to connect to a hotspot that may not have Internet connectivity. 80 more words

Programming

Skewing your developer skills to big data

Navigating online training options for developers has been catered to with broad learning styles and content rich options for some time. In the age of big data, providers are still coming to terms with attaining the same outcome. 645 more words

Hadoop

Advantages of Spring Framework

1. Spring enables the developers to develop the enterprise applications using POJOs (Plain Old Java Object). The benefit of developing the applications using POJO is, that we do not need an enterprise container such as an application server but we have the option of using a robust servlet container. 170 more words

Java

Java program: Convert to Roman Numerals


import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.Map;

public class RomanNumerals {

    private static Map<Integer, String> map;

    static {
        map = new LinkedHashMap<>();
        map.put(1000, "M");
        map.put(900, "CM");
        map.put(500, "D");
        map.put(400, "CD");
        map.put(100, "C");
        map.put(90, "XC");
        map.put(50, "L");
        map.put(40, "XL");
        map.put(10, "X");
        map.put(9, "IX");
        map.put(5, "V");
        map.put(4, "IV");
        map.put(1, "I");
    }

    public static void main(String[] args) {
            System.out.println(getRomanNumeral(451));
            System.out.println(getRomanNumeral(174));
    }

    private static String getRomanNumeral(int input) {
        String result = "";
        while (input > 0) {
            Iterator<Integer> iterator = map.keySet().iterator();
            while (iterator.hasNext()) {
                int temp = iterator.next();
                if (input - temp >= 0) {
                    result = result + map.get(temp);
                    input = input - temp;
                    break;
                }
            }
        }
        return result;
    }
}

Java

Simple, sophisticated failure handling

Failsafe is a lightweight, zero-dependency library for handling failures. It was designed to be as easy to use as possible, with a concise API for handling everday use cases and the flexibility to handle everything else. 34 more words

Programming

Returning/Finishing Up

In a few days, I am returning to Java to finish up a few projects I have been pursuing for several years.  Among these are my publication with… 98 more words

Art