Search:

Type: Posts; User: ojonugwa

Search: Search took 0.17 seconds.

  1. Re: How do you find the the exact index of an element that matches a search in an array?

    Finally got help from my tutor.This is one possible way to do it.


    import java.util.*;
    public class ArrayTest{
    public static void main (String[]args){
    Scanner input = new Scanner(System.in);...
  2. Re: How do you find the the exact index of an element that matches a search in an array?

    import java.util.*;

    public class ArrayTest2 {

    public static void main(String[] args) {

    Scanner input = new Scanner(System.in);
    int[] numbers = {8, 11, 19, 84};
  3. Re: How do you find the the exact index of an element that matches a search in an array?

    That was VERY helpful
  4. Re: How do you find the the exact index of an element that matches a search in an array?

    This is what i eventually did


    import java.util.*;
    public class ArrayTest {
    public static void main (String[]args) {
    Scanner input = new Scanner(System.in);
    int [] number...
  5. How do you find the the exact index of an element that matches a search in an array?

    import java.util.*;
    public class ArrayTest {
    public static void main (String[]args) {
    Scanner input = new Scanner(System.in);
    int [] number = new int[5];

    ...
Results 1 to 5 of 6