Arrays

6 Comments

  • Create a two player card game in which .We should generate a Deck(52 cards=4 suit of 13 cards) and it should be stored in a Array List from which each player pick a card randomly and determine winner (Player with larger card).
    if card picked is same then its draw.

  • Create a two player card game in which .We should generate a Deck(52 cards=4 suit of 13 cards) and it should be stored in a Array List from which each player pick a card randomly and determine winner (Player with larger card).
    if card picked is same then its draw.

  • can anyone get me solution of 2D array sorting logic bye passing a 2d array integer type from main to a function sort..plz helo me

  • /* can anyone get me the solution of how to sort a two D array integer type in way of this example bye passing a 2d array integer type from main to a function sort()..without using inbuilt function of java */

    class Multi_SortA
    {
    static void sort(int array[][])
    {

    }

    System.out.println(“Sorted order is: “);

    public static void main(String[] args)
    {

    sort( new int[][] { {3,2,5},{6,4,9},{7,8,1} } );
    }

    }

  • Ask the user to input N student record(maximum of 20 records)with their id,name,course,and year. Create an array as your storage. Be able to perform the ff.
    A.search by id
    b. Search by course
    c. Delete by id
    allow the user to perform operations a to c as often as possible.

    Be sure the list according to their names in ascending order without using any existing sort algo.

Sponsors

Facebook Fans

Online Shopping – Flipkart