Help me with the code to get output!

package week3; 
import java.util.Scanner;
import java.util.ArrayList;
public class Refferal_candidate { 
 static int n,x,a[]; 
 static boolean Search() 
 for(int i=0;i<n;i++) 
    return true; 
 return false; 
 public static void main(String[] args) { 
  Scanner s=new Scanner(; 
  System.out.println("Enter no. of candidates"); 
  a = new int[n];   
  System.out.println("Enter ids of candidates"); 
  for(int i=0;i<n;i++) 
  System.out.println("Enter id of referral candidate"); 
  Refferal_candidate p=new Refferal_candidate(); 
  boolean y=Search(); 
   System.out.println("Not found"); 

Hello there.

Do you have a question?

If so, please edit your post to include it.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.