954,506 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Linear Search

Hi this is Salman.I am having a problem is linear search.The program doesnt compile giving the error "No method found matching linsearch".My code is
class search{
public static void main(String args[]){
int A[]=new int[1000];
for(int i=0;i

salmanrauf
Newbie Poster
2 posts since Oct 2004
Reputation Points: 10
Solved Threads: 0
 

hi everyone,
You need to declare an instance of the class containing the function
like this

searching a = new searching();
System.out.println(a.linSearch(799, A[i]));

Yours Sincerely

Richard West

freesoft_2000
Practically a Master Poster
623 posts since Jun 2004
Reputation Points: 25
Solved Threads: 10
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You