Search:

Type: Posts; User: exose

Search: Search took 0.49 seconds.

  1. Replies
    3
    Views
    6,763

    Re: filling an array with strings

    Student class


    import java.io.*;
    import java.util.*;

    public class Student
    {
    private String firstName;
    private String lastName;
  2. Replies
    3
    Views
    6,763

    filling an array with strings

    Hi,

    I am trying to fill an array with strings but the code does not work:


    static int numStudents = 20;
    Student[] students = new Student[numStudents];
    String theFiller = "0";
    ...
Results 1 to 2 of 2