Here you can find the source of roundUpTo100(int n)
public static int roundUpTo100(int n)
//package com.java2s; //License from project: Apache License public class Main { public static int roundUpTo100(int n) { int rem = n % 100; if (rem == 0) return n; return n + (100 - rem); }// ww w. java2 s. c om }