title: incompatible types: String cannot be converted to int
body: <pre><code>import java.util.*; 
  import java.io.*;
  
  class Main {  
    public static int TimeConvert(int num) { 
  
      int t;int n;
      t = num % 60;
      n = num / 60;
  
      return n + ":" + t;
  
    } 
  
    public static void main (String[] args) {  
      Scanner s = new Scanner(System.in);
      System.out.print(TimeConvert(s.nextLine())); 
    }   
  
  }
  </code></pre>
  
  <p>Im looking to output on the screen using the return method the answer of num / 60 with a : then outputting the answer of num % 60. It will look something like this.. (User enters number 124) then it outputs 2:4 (hours:minutes). It works if I System.out it but not when I return it.  I get the error message...</p>
  
  <pre><code>Main.java:11: error: incompatible types: String cannot be converted to int
  
  return n + ":" + t;      
  
          ^
  1 error
  </code></pre>
  
  <p>How can i return (int):(int)?</p>