Student class
import java.io.*;
import java.util.*;
public class Student
{
private String firstName;
private String lastName;
Type: Posts; User: exose
Student class
import java.io.*;
import java.util.*;
public class Student
{
private String firstName;
private String lastName;
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";
...
:)
It is working! :) thanks so much! I have even changed some stuff for example:
public void displayStudentDetails()
{
for (int i=0; i<length; i++)
{...
ok thanks,
I have changed the addStudent method to:
public void addStudent()
{
students[length].getFirstName();
students[length].getLastName();
...
well... I am trying to figure out how to increase number of students and add another student to the array, for example:
When I will choose "Add Student" from Menu, I should be able to add a...
hi,
I am at the beginning of my assignment and I have some problems, here is my code:
import java.io.*;
import java.util.*;
public class StudentDatabase
{
ah ok, corrected:
for (int i = 0; i < userName.length; i++)
{
if(userName[i].equals(userNameInput) || password[i].equals(passwordInput))
{
...
thanks for your input, i have corrected few things and now my code looks like:
public class UserValidation
{
private Scanner scan;
public String userNameInput;
public String...
Hi,
I have created Guessing Game where computer is generating random number from 1-100 and then user needs to guess it.
as the second part of the assignment I need to:
1. Restructure the...