import java.io.*;
import java.util.*;
public class BookCharacteristics2
{
static Scanner console = new Scanner(System.in);
public static void main(String[] args) throws FileNotFoundException
{
Book[] books = new Book[100];
for (int i = 0; i < 100; i++)
books[i] = new Book();
IntClass numberOfBooks = new IntClass();
getBookData(books, numberOfBooks);
printBookData(books, numberOfBooks.getNum());
}
public static void getBookData(Book[] books, IntClass noOfBooks)
throws FileNotFoundException
{
String title;
String ISBN;
String Publisher;
int PublishYear;
String[] auth = new String[4];
double cost;
int copies;
int authorCount;
int i, j;
Scanner infile = new Scanner(new FileReader("bookData.txt"));
noOfBooks.setNum(infile.nextInt());
infile.nextLine();
for (i = 0; i < noOfBooks.getNum(); i++)
{
public static void main(String[] args) throws FileNotFoundException
{
ISBN[] books = new ISBN[100];
for (int i = 13; i < 100; i++)
ISBN[i] = new ISBN();
IntClass ISBN = new IntClass();
getISBN(ISBN);
printISBN(ISBN());
}
public static void getBookData(Book[] books, IntClass noOfBooks)
throws FileNotFoundException
{
*edit: Please use code tags in the future, thanks!
I am having trouble figuring out how to code the portion relating to ISBN. I know ISBNs are 13 digits, but am not sure if this code is correct to print out the 13 digit ISBN.
This post has been edited by Martyr2: 15 February 2009 - 11:17 AM

New Topic/Question
Reply




MultiQuote





|