Java tutorial
//package com.java2s; public class Main { public static String attributeToString(int att, int bad_Value) { return (att == bad_Value ? "?" : String.valueOf(att)); } public static String attributeToString(boolean att, boolean bad_Value) { return (att == bad_Value ? "?" : String.valueOf(att)); } public static String attributeToString(float att, float bad_Value) { return (att == bad_Value ? "?" : String.valueOf(att)); } public static String attributeToString(double att, double bad_Value) { return (att == bad_Value ? "?" : String.valueOf(att)); } }