public boolean fiction()
{
if(true)
{
System.out.println("This book is fiction");
}
else
if(false)
{
Type: Posts; User: clarky2006
public boolean fiction()
{
if(true)
{
System.out.println("This book is fiction");
}
else
if(false)
{
How can i get it to print? what do you suggest?
public boolean fiction()
{
if(boolean == true)
System.out.println("This book is ficion");
else
if(false)
System.out.println("This book is non-fiction");
Have a look at the code i posted please. i need to add if fiction or not in the print method..cheers.................................................
Well said, You are right, they are trying not to bombard us with too much info..In Blue j u actually are able to create an object and call the methods. You actually see what you are doing...
Sorry mate, I have been at Uni all day, just got home now..I had a chat with our lecturer today about the Main () method and he said you are right, we need the main method in the real world. He says...
I have been doing introduction to java since september and the tutor has never said any thing about main method. in Blue J you can create an objects on the work bench.
import java.util.ArrayList;
/**
* A simple model of an auction.
* The auction maintains a list of lots of arbitrary length.
*
* @author David J. Barnes and Michael Kölling.
* @version...
1525
here is a pic of blue j
Thats right there is no main in blue j..
import java.util.ArrayList;
/**
* This is the Library Class which would be used to maintain collections of members
* and books.
* @author (Michael Clark)
* @version (30th October 2012,...
Blue J is the java environment our teacher is using to teach us and he wants the project done in blueJ.. cheers
Its all done in the blue J environment..cheers for ur input
--- Update ---
its not infinite loop but infinite compilation..it just says compiling and never stops unless i close the...
/**
* Write a description of class Book here.
*
* @author (Michael Clark)
* @version (30th October 2012, version 0.1)
*/
public class Book
{
// instance variables - replace the...