package com.nmakademija.nmaakademija.entity;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class TimeUntilSession {

    private long _SessionStart;
    private long _SessionEnd;

    private final DateFormat formatter = new SimpleDateFormat("MM-dd HH:mm:ss", Locale.US);

    public TimeUntilSession(long StartTime, long EndTime) {
        _SessionStart = StartTime;
        _SessionEnd = EndTime;
    }

    public String returnTime() {
        long now = new Date().getTime();

        long timeLeft = Math.max(_SessionStart * 1000 - now, _SessionEnd * 1000 - now);

        String dateFormatted = formatter.format(timeLeft);

        return dateFormatted;
    }
}
@@ -240,25 +240,24 @@
 rivate long 
-_
 SessionEnd;%0D
@@ -455,25 +455,24 @@
 e;%0D%0A        
-_
 SessionEnd =
@@ -630,17 +630,16 @@
  - now, 
-_
 SessionE
@@ -671,30 +671,14 @@
     
-String dateFormatted =
+return
  for
@@ -706,41 +706,8 @@
 t);%0D
-%0A%0D%0A        return dateFormatted;%0D
 %0A   

Rename variable