Search:

Type: Posts; User: nadirkhan

Search: Search took 0.11 seconds.

  1. Re: I want to store names and marks in an array. I am confused what should be the cod

    I dont want to hard code it. I know that you can have 2 arrays, one of string type to store names and the other of int type for the marks and then you can display them using the index of the element...
  2. I want to store names and marks in an array. I am confused what should be the code

    import java.util.Scanner;

    public class InputArray
    {
    public static void main(String[]args)
    {
    String name = "";
    {
    Scanner ScanObj = new Scanner(System.in);
Results 1 to 2 of 2