Home
Classrooms
Courses
About Us
Resources
Members
More
https://codingbat.com/prob/p186672
Solve this problem, then comment your solution.
public boolean only14(int[] nums) {
for(int i = 0; i < nums.length; i++) {
if(nums[i] == 1 && nums[i] == 4){
return true;
}
else return false;
public boolean only14(int[] nums) {
for(int i = 0; i < nums.length; i++) {
if(nums[i] == 1 && nums[i] == 4){
return true;
}
}
else return false;
}
}