Java tutorial
//package com.java2s; public class Main { public static String getModel(String hwRev) { //TODO: get real data? String model; if (hwRev.startsWith("snowy")) { model = "pebble_time_black"; } else if (hwRev.startsWith("spalding")) { model = "pebble_time_round_black_20mm"; } else { model = "pebble_black"; } return model; } }