What wrong in this Code ????
I am beginner in Java ( in programming too) , could any explain what's the idea of methods!!!! ... Check the code below : .... . ... import java.util.Scanner; public class Program { //your code goes here /* User message: "1", Reply: "Order confirmed" User message: "2", Reply: "info@sololearn.com" For any other number, the reply should be: "Try again". */ public static void main(String[] args) bot();{ Scanner sc= new Scanner(System.in) ; int i =sc.nextInt() ; switch (i) { case 1 : System.out.println("Order confirmed"); break; case 2 : System .out.println ("info@sololearn.com"); break; default : System . out. println("Try again"); } } }