Java Date Difference getScoreDifferenceString(int newNumber, int oldNumber)

Here you can find the source of getScoreDifferenceString(int newNumber, int oldNumber)

Description

get Score Difference String

License

Apache License

Declaration

public static String getScoreDifferenceString(int newNumber, int oldNumber) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.DecimalFormat;

public class Main {
    public static String getScoreDifferenceString(int newNumber, int oldNumber) {
        DecimalFormat format = new DecimalFormat("+#;-#");
        return format.format(newNumber - oldNumber);
    }//from  w ww .j a  v  a 2  s .com
}

Related

  1. getDifference(String dateStr1, String dateStr2, char choice)
  2. getDifferenceInDays(Calendar calendar0, Calendar calendar1)
  3. getDiffMon(Date dt, int idiff)
  4. getDiffMon(Date dt, int idiff)
  5. getDiffToString(Date date, int n, String pattern)
  6. getSecondDiff(Date d1, Date d2)
  7. getTimeDifferenceInSeconds(Date d, Date d2)
  8. nextSeconds(Date date, int diff)
  9. parseParamDate(final String diff)