Search:

Type: Posts; User: belinyom

Search: Search took 0.28 seconds.

  1. Re: How to find maximum, minimum and occurence time of index in an array list

    Now at this part I am kind of lost, please give me time to look for it and try to understand what you are saying.
  2. Re: How to find maximum, minimum and occurence time of index in an array list

    1. My bad, I only want the user to input a number that is within the array list once, I will put that outside the loop and before it.
    2. from my understanding to the 'there needs to be a code to get...
  3. Re: How to find maximum, minimum and occurence time of index in an array list

    import java.util.ArrayList;
    import java.util.Scanner;

    public class IndexOf {

    public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    ...
  4. Re: How to find maximum, minimum and occurence time of index in an array list

    for (int loopValue = 0; loopValue < arrayList.size(); loopValue++) {
    System.out.println(arrayList.get(loopValue));
    }


    I believe this is what you were referring to, printing...
  5. Re: How to find maximum, minimum and occurence time of index in an array list

    public class IndexOf {

    public static void main(String[] args)
    {
    Scanner scanner = new Scanner(System.in);
    ArrayList<Integer> arrayList = new ArrayList<>();
    int...
  6. Re: How to find maximum, minimum and occurence time of index in an array list

    Yes the code would be: system.out.println(arrayList); after the while loop to list [all the array elements I have inputted], do correct me if I am wrong please.

    If I have 5 elements in an array...
  7. How to find maximum, minimum and occurence time of index in an array list

    I have been given an exercise to find how many times has a certain index (content value) has been occured as well as the maximum and minimum value index in an array list. For example, if the user...
Results 1 to 7 of 7