class Main {
public static void main(String[] args) {
Book crimeAndPunishment = new Book();
crimeAndPunishment.name = "Crime and Punishment";
crimeAndPunishment.author = "Fyodor Dostoevsky";
crimeAndPunishment.numberOfPages = 600;
Book meditations = new Book();
meditations.name = "Meditations on first philosophy";
meditations.author = "René Descartes";
meditations.numberOfPages = 300;
Book languageInstinct = new Book();
languageInstinct.name = "The Language Instinct";
languageInstinct.author = "Steven Pinker";
languageInstinct.numberOfPages = 400;
Hi, I'm new to java and I've created a few book objects but need to find the book with the most pages. I have looked up how to use for loops and while loops but I'm not sure what condition should be set.