0
What is wrong in the program?
import java.util.Scanner ; Class en () { int number,encrypted_number,decrypted_number; } Static int do() { encrypted_number =(number &00011011); System.out.println("Encrypted number is:" + encrypted_number); decrypted_number =(encrypted_number &01011111); System.out.println("Decrypted number is:" + decrypted_number); } Public static void main(String[] args) { Scanner number=new Scanner (System.in); System.out.println(number.nextLine()); do(); }
2 Answers
0
return type is missing.......in Static int do() method....
0
int is the return type specified...