I have a java class which includes a method called kleiner
. I want to call it inside the shell (for example kleiner 3 4
). Here is the code below:
package premier;
public class HelloWorld {
public static void kleiner(int a, int b) {
if (a < b)
System.out.println(a);
else
System.out.println(b);
}
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Hello world");
kleiner(3, 4);
}
}