The information on the txt file is
Name:Department :Job Title:Year Hired:Gender
Code:
<%@page import="java.io.*"%> <%@ page session="false"%> <html>
<%@page import="java.io.*"%> <%@ page session="false"%> <html>
// polymorphism
abstract class player // class is abstrct
{
String name;
player(String nm)
{
name=nm;
}
//public String getName() // regular method
// {
// return(name);
// }
abstract void play();
}
public void printOne() throws IOException
{
System.out.println("Part stock number (press 0 to end): ")';
stockNumber = conIn.nextInt();
skip conIn.NextLine();
/* I have tried creating a dummy object similiar to removing from a linked list
but I cannot
int counter = 0;
int count = 0;
list1.reset();
while(counter < list1.size())
{
if(list2.contains(list1.getNext()))
{
count++;
}
counter++;
}
Leave a comment: