Eaqsy question but cant get out. Please help

Hey,
for school i need to learn java. We have had some small projects but here i get stuck. Is there someone who van help me?
There are 3 files below. 2 sub and 1 main.
I need to connect the 2 with eachother and let the main display the info.
Outcome, Lid@addbf1 needs to be Erik, what am i doing wrong??
De titel van het boek is boeka en het is geschreven door auteura.
De titel van het boek is boekb en het is geschreven door auteurb.
De nieuwe titel van het boek is boekaa
[email protected] class Boek {
* (non-javadoc)
private Lid lid;
* Getter of the property <tt>lid</tt>
* @return Returns the lid.
public Lid getLid()
     return lid;
* Setter of the property <tt>lid</tt>
* @param lid The lid to set.
public void setLid(Lid lid ){
     this.lid = lid;
private String titel;
     private String auteur;
     private boolean isUitgeleend;
     private int hoeVaakUitgeleend;
     public Boek (String titel, String auteur) {
          this.titel = titel;
          this.auteur = auteur;
          this.isUitgeleend = false;
          this.hoeVaakUitgeleend = 0;
     public void setTitel (String titel) {
          this.titel = titel;
     public void setAuteur (String auteur) {
          this.auteur = auteur;
     public void setIsUitgeleend (boolean isUitgeleend) {
          this.isUitgeleend = isUitgeleend;
     public void setHoeVaakUitgeleend (int hoeVaakUitgeleend) {
          this.hoeVaakUitgeleend = hoeVaakUitgeleend;
     public String getTitel () {
          return titel ;
     public String getAuteur () {
          return auteur;
     public boolean getIsUitgeleend () {
          return isUitgeleend;
     public int getHoeVaakUitgeleend () {
          return hoeVaakUitgeleend;
}Lid.java
public class Lid {
* (non-javadoc)
private Boek boek;
* Getter of the property <tt>boek</tt>
* @return Returns the boek.
public Boek getBoek()
     return boek;
* Setter of the property <tt>boek</tt>
* @param boek The boek to set.
public void setBoek(Boek boek ){
     this.boek = boek;
public Lid(String naam, String adres){
          this.naam = naam;
          this.adres = adres;
          this.aantalBoeken = 0;
* (non-javadoc)
private int aantalBoeken;
* Getter of the property <tt>aantalBoeken</tt>
* @return Returns the aantalBoeken.
public int getAantalBoeken()
     return aantalBoeken;
* Setter of the property <tt>aantalBoeken</tt>
* @param aantalBoeken The aantalBoeken to set.
public void setAantalBoeken(int aantalBoeken ){
     this.aantalBoeken = 0;
* (non-javadoc)
private String adres;
* Getter of the property <tt>adres</tt>
* @return Returns the adres.
public String getAdres()
     return adres;
* Setter of the property <tt>adres</tt>
* @param adres The adres to set.
public void setAdres(String adres ){
     this.adres = adres;
* (non-javadoc)
private String naam;
* Getter of the property <tt>naam</tt>
* @return Returns the naam.
public String getNaam()
     return naam;
* Setter of the property <tt>naam</tt>
* @param naam The naam to set.
public void setNaam(String naam ){
     this.naam = naam;
BibAdmin.javapublic class BibAdmin {
     * @param args
     public static void main(String[] args) {
          // TODO Auto-generated method stub
          Boek a = new Boek ("boeka", "auteura");
          Boek b = new Boek ("boekb", "auteurb");
          Boek c = new Boek ("boekc", "auteurc");
          Boek d = new Boek ("boekd", "auteurd");
          System.out.println("De titel van het boek is "+a.getTitel()+ " en het is geschreven door "+ a.getAuteur()+ ".");
          System.out.println("De titel van het boek is "+b.getTitel()+ " en het is geschreven door "+ b.getAuteur()+ ".");
          a.setTitel("boekaa");
          System.out.println("De nieuwe titel van het boek is "+a.getTitel());
          Lid e = new Lid ("Erik", "Ronde weg");
          Lid f = new Lid ("Frank", "Vierkante weg");
          Lid g = new Lid ("Gert", "Ovale weg");
          Lid h = new Lid ("Henkjan", "Rechte weg");
          a.setIsUitgeleend(true);
          a.setHoeVaakUitgeleend(+1);
          e.setAantalBoeken(+1);
          a.setLid(e);
          e.setBoek(a);
          System.out.println(a.getLid());

Hmm, i cant edit my post? well nvm, here it is again in correct code!
I get this output., But in sted of Lid@addbf1 i need it to show Erik.
De titel van het boek is boeka en het is geschreven door auteura.
De titel van het boek is boekb en het is geschreven door auteurb.
De nieuwe titel van het boek is boekaa
[email protected]
public class Boek {
private Lid lid;
public Lid getLid() {
     return lid;
public void setLid(Lid lid ){
     this.lid = lid;
private String titel;
     private String auteur;
     private boolean isUitgeleend;
     private int hoeVaakUitgeleend;
     public Boek (String titel, String auteur) {
          this.titel = titel;
          this.auteur = auteur;
          this.isUitgeleend = false;
          this.hoeVaakUitgeleend = 0;
     public void setTitel (String titel) {
          this.titel = titel;
     public void setAuteur (String auteur) {
          this.auteur = auteur;
     public void setIsUitgeleend (boolean isUitgeleend) {
          this.isUitgeleend = isUitgeleend;
     public void setHoeVaakUitgeleend (int hoeVaakUitgeleend) {
          this.hoeVaakUitgeleend = hoeVaakUitgeleend;
     public String getTitel () {
          return titel ;
     public String getAuteur () {
          return auteur;
     public boolean getIsUitgeleend () {
          return isUitgeleend;
     public int getHoeVaakUitgeleend () {
          return hoeVaakUitgeleend;
}Lid.java
public class Lid {
private Boek boek;
public Boek getBoek()
     return boek;
public void setBoek(Boek boek ){
     this.boek = boek;
public Lid(String naam, String adres){
          this.naam = naam;
          this.adres = adres;
          this.aantalBoeken = 0;
private int aantalBoeken;
public int getAantalBoeken()
     return aantalBoeken;
public void setAantalBoeken(int aantalBoeken ){
     this.aantalBoeken = 0;
private String adres;
public String getAdres()
     return adres;
public void setAdres(String adres ){
     this.adres = adres;
private String naam;
public String getNaam()
     return naam;
public void setNaam(String naam ){
     this.naam = naam;
}}BibAdmin.java
public class BibAdmin {
      * @param args
     public static void main(String[] args) {
          // TODO Auto-generated method stub
          Boek a = new Boek ("boeka", "auteura");
          Boek b = new Boek ("boekb", "auteurb");
          Boek c = new Boek ("boekc", "auteurc");
          Boek d = new Boek ("boekd", "auteurd");
          System.out.println("De titel van het boek is "+a.getTitel()+ " en het is geschreven door "+ a.getAuteur()+ ".");
          System.out.println("De titel van het boek is "+b.getTitel()+ " en het is geschreven door "+ b.getAuteur()+ ".");
          a.setTitel("boekaa");
          System.out.println("De nieuwe titel van het boek is "+a.getTitel());
          Lid e = new Lid ("Erik", "Ronde weg");
          Lid f = new Lid ("Frank", "Vierkante weg");
          Lid g = new Lid ("Gert", "Ovale weg");
          Lid h = new Lid ("Henkjan", "Rechte weg");
          a.setIsUitgeleend(true);
          a.setHoeVaakUitgeleend(+1);
          e.setAantalBoeken(+1);
          a.setLid(e);
          e.setBoek(a);
          System.out.println(a.getLid());
}

Similar Messages

  • Two simple questions i cant figure out please help!

    hey guys, i used soundtrack before on a 20 minute long project and i looked all over and cant figure out how to do this one simple thing! its a professional audio editing program but i cant figure out how to do a simple fade in or have a clip just fade out...i couldnt find it in the help either...it would deffidently help in my project and blend everything together nicer...im not talking about a transition between two clips but just a single clip alone having it fade in and fade out?
    my other question is the audio levels. i see on the left hand side you can adjust it for each individual layer...but is there anyway to adjust the individual clips? the project i did before that was 20 minutes had like 25 layers! because all of the layers had usually one seperate clip alone in it since i couldnt make each clip in the layer have its own individual unique audio level adjustment. im sure there is a way and its probably real simple!
    these are jus two dumb questions i feel stupid for aksing for but would be greatly appreciated if you could help!!! thanks!!!

    Maybe this will be fixed in 2.0. For now, if you right click on the clip and choose "open in editor", the clip will open as an audio file. There you'll be able to highlight an area and select "fade out" (or fade in). It will update in your multi track project.
    You can do the same thing for levels. Or you can use the envelope levels, set keyframes, and adjust the gain accordingly.
    I know, not an easy way to do a lot of clips.
    jimi

  • Hi, i just updated my iphone 3gs to iso5 now it will not activate ive ''try again'' alot but not getting anywere please help!!

    hi, i just updated my iphone 3gs to iso5 now it will not activate ive pressed ''try again'' alot but not getting anywere please help! i need my phone for work not had it too long and really annoyed lol thanks,

    Sorry, but Apple does not provide a downgrade path for iOS.
    Because downgrading is unsupported by Apple we cannot discuss it on these forums, but you can use Google to find information on how to install an older version of iOS on any device.
    Note that you will void the warranty and loose official support by Apple.
    Feel free to let Apple know at http://www.apple.com/feedback
    Anyway, give a try resetting all your settings:
    Settings > General > Reset > Reset All Settings

  • I cant work out how when i open a new tab it opens with Google... simple but cant do it please help

    A simple one but cant do it
    all I want is each time I open up a new tab it opens in Google can do it
    please help

    Have you got some kind of search bar added as a plugin that you need to uninstall. I note an entry in your system details mentioning 'BLNBAR'.
    * see [[Searches are redirected to another site]] - also lists some sites of interest if you have malware problems
    * and [[Troubleshooting plugins#w_manually-uninstalling-a-plugin]] (includes instructions on how to manually uninstall)

  • Hi I am using outlook on windows xp and want to sync my email folders but cant do it please help

    Hi I have gmail as my email provider to open in outlook but when I sync my
    I Pad to it my folders dont transfer and the mail is all mixed up the new mail goes into my trash, it is all mixed up, could someone please help me with this.

    Follow the steps in wjosten's post here: https://discussions.apple.com/message/13356770#13356770 (for Windows, substitute Outlook in step 2).

  • TS3276 can't send emails but can get them please help

    cant send emails but can get emails just fine

    Troubleshooting Apple Mail
    What does Mail/Window/Connection Doctor Show? If the server is red, select it and look at the Show Details box.
    Troubleshooting sending and receiving email messages
    Troubleshooting sending email messages
    SMTP servers keep going offline

  • I'm stuck in my settings app and can't get out, please help!

    It's an iphone 4. It told me to make some more room and in storage and I did but not it won't let me out of the app! I can move around in it but it won't let me get to the home screen or lock it. I've tried holding down the lock button but it doesn't work. I'm freaking out badly, please someone help me!!!

    Hold down the Home and Sleep/Wake buttons for 10-15 seconds or until the screen goes dark. Then, press and hold the power button to power it back up.
    This resets the phone and it should work as expected once it boots back up
    ~Lyssa

  • IPOD has bars for internet but cant go onilne PLEASE HELP!!

    hello i have a problem my ipod it is connected to the internet but it does not let me go onine. I am able to go online at hotspots and ather places but not at home .I have been trying to get it to work by going to a place were i can reset my network settings on the ipod but it no help me get online  . Could it be my router i don't think it is because i have had my ipod online before this had happened ofor about 4 months the ipod you could say is new because i got the item for christmas can you help me at all. I HAV DOES Everything like froggeting the netword and reseting my router and turing it off and the ipod for 10 mins but it still does not work. PS  i hav restored it too see if it as  a applaction and i hav loads of space on my ipod.

    That happened to me, if you are with bt,the connection for wifi is down in some certain areas due to a technical fault. I came back online yesturday. Im afraid (IF THAT IS THE PROBLEM) you will have to wait.

  • I cant access my ymail PLEASE HELP I can log into yahoo but cant get to mail? Think the words configure & rand flash in address bar

    I cant access my ymail PLEASE HELP I can log into yahoo but cant get to mail? Think the words configure & rand flash in address bar

    Hi Acrylik,
    Welcome to the Apple Support Communities!
    For assistance resetting your Apple ID password, please use the information in the following article. I understand you have already attempted to reset via email and security questions, but the article also includes a link to contact Apple support if necessary.
    If you forgot your Apple ID password
    http://support.apple.com/kb/HT5787
    Have a great day,
    Joe

  • I just got a new 4S, but cant figure out how to get the contacts from my old 3GS to my new phone via ITunes. Help!

    I just got a new 4S, but cant figure out how to get the contacts from my old 3GS to my new phone via ITunes. Help!

    You should have been syncing your contacts with your computer all along.
    Have you failed to do this?
    iPhone: Transferring information from your current iPhone to a new iPhone

  • Hello i have a problem my mac butoos up but cant get to move de curser with the trackpad or external mouse please help

    Hello i have a problem my mac butoos up but cant get to move de curser with the trackpad or external mouse please help

    Try a PRAM reset.
    Instructions here > Resetting the PRAM

  • Never used itunes before, have downloaded a song onto laptop but cant get it in ipod nano please help

    New to itunes managed to download a song to laptop but cant get on to ipod nano(plugged into laptop) or iphone or ipad

    I have sorted it myself!!
    Ipod is now in the top right corner, last time I clicked on it, it ejected it but by clicking on the actual ipod icon then it brings up your ipod. I restored it to factory settings and synced all my music and it now works again. Hope this can help anyone who ends up with the same problem.

  • I have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me

    i have problem with my wifi in 4 S, i cant connect to any wifi itried resetting network setting and reset all setting but the result was the same, its only keeps searching for wifi and cant find any, itried to use OTHER but also didnt work.please help me???

    If Join was on then your home wi-fi must be set to Non-Broadcast.  If you did not set this up (maybe your provider did) then you will need to find the Network Name they used, and any password they used.  The SSID is Security Set ID and to see more try http://en.wikipedia.org/wiki/SSID .  Basically it is the name used to identify your router/network.  A lot of times the installer will leave it set as LinkSys, or Broadcom or whatever the manufacturer set it as for default.  Your best bet is to get whoever installed it to walk you through how they set it up, giving you id's and passwords so you can get in.  HOWEVER, if you are not comfortable with this (if you set security wrong, etc.) you would be well ahead of the game to hire a local computer tech (networking) to get this working for you.  You can also contact the vendor of your router and get help (if it is still in warranty), or at least get copies of the manuals as pdf files.  Sorry I can't give you more help, I hope this gives you an idea where to go from here to find more.

  • HT1349 hi guys i have 2 ? 1 my daughters iphone is trying to update on my mac cant get it off help please ,,, 2 i have an old apple id and when i try to up date it keeps looking for the password how do i delete this old apple id help

    hi guys i have 2 ? 1 my daughters iphone is trying to update on my mac cant get it off help please ,,, 2 i have an old apple id and when i try to up date it keeps looking for the password how do i delete this old apple id help

    Hi.
    I had a similar problem myself. This is what helped me.
    I went to the App store app, scrolled to the bottom, logged out of the account, re logged in with my Apple ID.  Then went back to app updates. Once I put in my ID password all was fine.

  • TS2446 i cant change my sercurity question and answers :( i forgot it and now i cant verify it :( please help me

    i cant change my sercurity question and answers
    i forgot it and now i cant verify it
    please help me

    By can't change them do you mean that you don't have a rescue email address set up on your account : http://support.apple.com/kb/HT5312 ?
    If you don't (you won't be able to add one until you can answer 2 of your questions) then you will need to contact iTunes Support / Apple to get the questions reset.
    Contacting Apple about account security : http://support.apple.com/kb/HT5699
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down the HT5312 link above to add a rescue email address for potential future use

Maybe you are looking for

  • How do I set up a root directory for a web site

    So this is probably a naive newbie question. I have been creating websites driven by php/mysql on my mac for years using the previous the web preference pane to run Apache and since that went away using XAMPP to provide Apache/php/mysql functionality

  • VC No. of rows in Table disabled

    I cannot select "no. of rows" in a table, so always all rows are displayed at one page. What can I do to enable this function?

  • How to put songs in ipod shuffle

    how to put songs in ipod shuffle

  • Automator Export Action NOT WORKING.

    I realize that double-posting is not typically a good thing, but this forum seems to get more activity than the Automator one, and it sort-of applies to both, so I'm posting here as well... Basically, I cannot get the Export Images action to work. I

  • Condition "after WHERE" versus "after CONNECT"

    What is difference in sematics/meaning/result if condition "T.COL1 is null" is written after "connect by" clause, or, after "where"-caluse? See query below. Thanks. select * from table1 T where T.COL1 is null start with T.PARENT_ID is null connect by