Skip to content
This repository has been archived by the owner on Dec 29, 2019. It is now read-only.

Commit

Permalink
Merge pull request #18 from sahalsaad/master
Browse files Browse the repository at this point in the history
Add Groovy language.
  • Loading branch information
ayan-b authored Oct 16, 2017
2 parents 44ff588 + c527771 commit e69de8d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions LinearSearch.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def nums = [1, 2, 3, 8, 9, 12]
def target = 2

if (nums.indexOf(target) >= 0) {
println "Successful Search!"
} else {
println "Not in the array."
}

0 comments on commit e69de8d

Please sign in to comment.