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(); }

21st Sep 2016, 3:53 PM
Learning
2 Answers
0
return type is missing.......in Static int do() method....
22nd Sep 2016, 11:03 AM
VaTs NAYAK
VaTs NAYAK - avatar
0
int is the return type specified...
22nd Sep 2016, 1:05 PM
Learning