Hi, i am trying to get better at communication skills. So i am willing to tutor any one who is new to java, algorithm, or GUI. And in return I don't expect anything.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Hi, i am trying to get better at communication skills. So i am willing to tutor any one who is new to java, algorithm, or GUI. And in return I don't expect anything.
Hi mate..I could do with help to design a library project..your help would be appreciated..thanks
--- Update ---
ps..Im very new to JAVA
Just remember, you get what you paid for.
so do u reckon its possible? i ve done the basics like designing the book class, library class, loan class and the membership class. i ve also done some mutators and accessors. let me know and how much...cheers..
See:how much...cheers..And in return I don't expect anything.
Of course. Anything is possible, especially the impossible..so do u reckon its possible?
Finish it yourself. Because:i ve done the basics like designing the book class, library class, loan class and the membership class. i ve also done some mutators and accessors.
1) You will learn more
2) You will know your project well and this will aid in troubleshooting
3) You can maintain and modify the code more effectively
4) If you have done so much already, why give the glory to someone else, that is the best part.
clarky2006 (November 7th, 2012), curmudgeon (November 7th, 2012)
Ye, i ve done a bit but it wont compile and i struggled with the arraylist
--- Update ---
its a Uni project done in BlueJ environment..thanx
--- Update ---
/**
* Write a description of class Book here.
*
* @author (Michael Clark)
* @version (30th October 2012, version 0.1)
*/
public class Book
{
// instance variables - replace the example below with your own
private int id;
private String author;
private String title;
private boolean isFiction;
/**
* Constructor for objects of class Book
*/
public Book(String title, String author, int id, boolean isFiction)
{
// initialise instance variables
this.id = 0;
this.author = author;
this.title = title;
this.isFiction = false;
}
/**
* Get the name of the book Author.
*
*/
public String getAutor()
{
// put your code here
return this.author;
}
/**
* Get the book ID.
*/
public int getId()
{
return this.id;
}
/**
* Get the book title.
*
*/
public String getTitle()
{
return this.title;
}
public void setAuthor(String authorName)
{
author = authorName;
}
public void setId(int bookId)
{
id = bookId;
}
public void setTitle(String bookTitle)
{
title = bookTitle;
}
Here is the book class..wont compile
--- Update ---
import java.util.ArrayList;
/**
* This Class would hold Membership details for the Library.
*
* @author (Michael Clark)
* @version (30th October 2012, version 0.1)
*/
public class Member
{
// instance variables - These are member object attributes/fields
private String firstName;
private String lastName;
private String phoneNumber;
private int refNumber;
/**
* Constructor for objects of class Member
*/
public Member(String firstName, String lastName, String phoneNumber, int refNumber)
{
this.firstName = firstName;
this.lastName = lastName;
this.phoneNumber = phoneNumber;
this.refNumber = refNumber;
}
/**
* An example of a method - replace this comment with your own
*
* @param y a sample parameter for a method
* @return the sum of x and y
*/
public String getfirstName()
{
return this.firstName;
}
public String getlastName()
{
return this.lastName;
}
public String getPhoneNumber()
{
return this.phoneNumber;
}
public int getrefNumber()
{
return this.refNumber;
}
The membership class
--- Update ---
import java.util.ArrayList;
/**
* This is a model of a Library class.
*
* @author (Michael Clark)
* @version (30th October 2012, version 0.1)
*/
public class Library
{
// instance variables - replace the example below with your own
private ArrayList<Membership> member;
private ArrayList<Book> books;
/**
* Constructor for objects of class Library
*/
public Library(Membership member)
{
// initialise instance variables
members = new ArrayList<Membership>();
books = new ArrayList<Book>();
}
/**
* An example of a method - replace this comment with your own
*
* @param y a sample parameter for a method
* @return the sum of x and y
*/
public int sampleMethod(int y)
{
}
}
}
{
The library class
--- Update ---
/**
* Write a description of class Loan here.
*
* @author (Michael Clark)
* @version (30th October 2012, version 0.1)
*/
public class Loan
{
// instance variables - replace the example below with your own
private int x;
/**
* Constructor for objects of class Loan
*/
public Loan()
{
// initialise instance variables
x = 0;
}
/**
* An example of a method - replace this comment with your own
*
* @param y a sample parameter for a method
* @return the sum of x and y
*/
public int sampleMethod(int y)
{
// put your code here
return x +
this is just a template for the loan class
clarky, your question is important, so give it its own separate thread/question rather than hijacking hwoarang69's thread. Also, when you do re-ask your question in its own thread, please 1) put [code=java] [/code] tags around your code so that it retains its formatting and is readable, and please 2) show the compilation errors, and indicate by comment in the code which line is causing the compilation errors. Best of luck!
Admin (November 8th, 2012)
cheers mate, i know wot u mean now, i only joined last night..