please somebody should help!
the compiler kept on issuing an error saying there is a missing return statement in my code.
please help me and check it.
package com.codegym.task.task04.task0424;
/*
Three numbers
*/
import java.io.*;
public class Solution {
int a;
int b;
int c;
public static void main(String[] args) throws Exception {
//write your code here
Solution sol =new Solution();
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b=Integer.parseInt(reader.readLine());
int c=Integer.parseInt(reader.readLine());
System.out.println(sol.ord(a,b,c));
}
public int ord(int a , int b , int c){
this.a=a;
this.b=b;
this.c=c;
if(a!=b && a!=c && b==c)
return 1;
else if(b!=a && b!=c && a==c)
return 2;
else if(c!=b && c!=a && a==b)
return 3;
}
}