Two problems with two different classes.

im having two problems: i get nothing with the printConferences() method inside ReferenceBook class, the arraylist size is equal to zero. and my printSchoolsAndCopies() and schoolsAndCopiesToArray() methods which are inside TextBook class, give exceptions:
Exception in thread "main" java.lang.ArrayStoreException at java.lang.System.arraycopy(Native Method) at java.util.ArrayList.toArray(ArrayList.java:304) at project3.TextBook.schoolsAndCopiesToArray(TextBook.java:64) at project3.TextBook.printSchoolsAndCopies(TextBook.java:74) at project3.BookTester.main(BookTester.java:27) Java Result: 1 BUILD SUCCESSFUL (total time: 0 seconds)
all you need to read is TextBook and ReferenceBook class, but i added the tester and BookCatalog, which is an arraylist of books.
here are my TextBook and ReferenceBook classes and the tester, there are two abstract classes Book and TechnicalBook, but i wont post them unless anybody needs them, i presume not.
* TextBook.java
* Created on April 19, 2007, 8:02 PM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package project3;
import java.util.*;
* @author Kevin
public class TextBook extends TechnicalBook{
    private ArrayList <String> schools;
    private ArrayList <Integer> numberCopiesForSchool;
    private String [][] schoolsAndCopies;
    public static final String TEXTBOOK = "Textbook";
    /** Creates a new instance of TextBook */
    public TextBook(String author, String title, int numberPages, int copiesSold,
            double price) {
        super(author, title, numberPages, copiesSold, price);
        schools = new ArrayList();
        numberCopiesForSchool = new ArrayList();
    public int getNumberCopiesForSchool(String school){
        Integer temp = null;
        for(int i = 0; i < schools.size();i++){
            if(schools.get(i).equals(school))
               temp = numberCopiesForSchool.get(i);
        return temp;
    public void addSchool(String school){
        Integer one = new Integer(1);
        schools.add(school);
        // number of copies for the school is initially 1
        numberCopiesForSchool.add(one);  
    public int getNumberSchools(){
        int count = 0;
        for(int i = 0; i < schools.size(); i++){
            if(schools.get(i) != null)
                count++;
        return count;
    public void addCopiesForSchool(String school, int copies) {
          for (int i = 0; i < schools.size(); i++) {
                    if (schools.get(i).equals(school))
               numberCopiesForSchool.set(i, numberCopiesForSchool.get(i)
                            + (Integer) copies);
    private void schoolsAndCopiesToArray(ArrayList <String> a, ArrayList <Integer> b){
        String [] c = null;
        String [] d = null;
        c = (String[]) a.toArray(new String[a.size()]);
        d = (String[]) b.toArray(new String[b.size()]);
        String [] [] schoolsAndCopies = null;
        for(int i = 0; i < c.length;i++){
            for(int j = 0; j < d.length;j++){
                schoolsAndCopies[i] = c;
                schoolsAndCopies[j] = d;
    public void printSchoolsAndCopies(String title){
        schoolsAndCopiesToArray(schools, numberCopiesForSchool);
        System.out.println("---------------");
        System.out.println("Schools and copies sold to each school for " + this.title+ ".");
        System.out.println("Schools:\tCopies:");
        for(int i = 0; i < schoolsAndCopies.length;i++)
            for(int j = 0; j < schoolsAndCopies.length;j++)
System.out.println(schoolsAndCopies [i] + "\t" +
schoolsAndCopies[j]);
public String getClassName(){
return TEXTBOOK;
// overrides TechnicalBook toString
public String toString(){
return "Author = " + author + ". Title = " + title + ". Number of Pages = " +
numberPages + ". Copies Sold = " + copiesSold + ". Schools using " + title +
". Price = " + this.getPrice() + " = " + this.getNumberSchools() + ". ";
* ReferenceBook.java
* Created on April 19, 2007, 8:02 PM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package project3;
import java.util.*;
* @author Kevin
public class ReferenceBook extends TechnicalBook{
private ArrayList <String> conferences;
public static final String REFERENCE_BOOK = "Reference Book";
//private int numberConferences;
/** Creates a new instance of ReferenceBook */
public ReferenceBook(String author, String title, int numberPages, int copiesSold,
double price) {
super(author, title, numberPages, copiesSold, price);
conferences = new ArrayList();
public String getConference(int a){
for(int i = 0; i < conferences.size();i++)
if(i == a)
return conferences.get(i);
return null;
public void addConference(String conference){
for(int i = 0; i < conferences.size();i++){
conferences.add(conference);
break;
public void printConferences(){
System.out.println("-------------");
System.out.println("Conferences made for " + this.title + ".");
for(int i = 0; i < conferences.size(); i++){
System.out.println("["+(i + 1) +"]: "+ conferences.get(i));
System.out.println(conferences.size());
public String getClassName(){
return REFERENCE_BOOK;
public String toString(){
return super.toString();
* BookTester.java
* Created on April 19, 2007, 8:02 PM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package project3;
* @author Kevin
public class BookTester{
/** Creates a new instance of BookTester */
public static void main(String [] args){
BookCatalog catalog = new BookCatalog("Library");
TextBook java = new TextBook("John", "Java", 5, 20, 5.00);
TextBook beans = new TextBook("Mike", "JavaBeans", 6, 21, 5.00);
ReferenceBook ref = new ReferenceBook("Jones", "Standard Class Library", 6, 23, 5.00);
ref.addConference("Meeting");
ref.printConferences();
beans.addSchool("UTSA");
beans.printSchoolsAndCopies("c++");
catalog.addBook(java);
catalog.addBook(beans);
catalog.printCatalog();
my BookCatalog class is fine, and everything prints out with out using the listed methods that give trouble.
* BookCatalog.java
* Created on April 20, 2007, 4:42 PM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package project3;
import java.util.*;
* @author Kevin
public class BookCatalog {
    private String name;
    private ArrayList <Book> bookList;
    /** Creates a new instance of BookCatalog */
    public BookCatalog(String name) {
        this.name = name;
        bookList = new ArrayList <Book>();
    public String getCatalogName(){
        return name;
    public void addBook(Book b){
        bookList.add(b);
    public void printCatalog(){
        for(int i = 0; i < bookList.size(); i ++){
            System.out.println("[" + i + "]: " + bookList.get(i).getClassName() +
                   ": " + bookList.get(i).toString());
}thanks in advance

everything runs now, but it doesnt sort them. it prints them in the original order: here is the revised BookCatalog and Tester, also when making sortByTitle static it gives non static variable errors so i have no idea. Thanks for helping me fix the errors, i have no idea why it doesnt sort.
* BookCatalog.java
* Created on April 20, 2007, 4:42 PM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package project3;
import java.util.*;
* @author Kevin
public class BookCatalog {
    private String name;
    private ArrayList <Book> bookList;
    //private Book [] bookList2;
    /** Creates a new instance of BookCatalog */
    public BookCatalog(String name) {
        this.name = name;
        bookList = new ArrayList <Book>();
    public String getCatalogName(){
        return name;
    public void addBook(Book b){
        bookList.add(b);
        public void sortByTitle(ArrayList<Book> list){
      if (bookList.size() > 1)
        for (int index = 1; index < bookList.size(); index++)
           insertItemByTitle(bookList, index);
     private void insertItemByTitle(ArrayList <Book> bookList, int index) {
            Book key = bookList.get(index);
            int position = index;
            while (position > 0 && key.getTitle().compareTo(bookList.get(index).getTitle()) < 0)   {
                bookList.set(position, bookList.get(position-1));// = bookList.set(position-1, key);
               position--;
            bookList.set(position, key);
    public void printCatalog(){
        sortByTitle(bookList);
        Book [] bookList2 = (Book[])bookList.toArray(new Book[bookList.size()]);
        for(int i = 0; i < bookList2.length; i ++){
            System.out.println("[" + (i+1) + "]: " + bookList2.getClassName() +
": " + bookList2[i].toString());
* BookTester.java
* Created on April 19, 2007, 8:02 PM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package project3;
* @author Kevin
public class BookTester{
/** Creates a new instance of BookTester */
public static void main(String [] args){
BookCatalog catalog = new BookCatalog("Library");
TextBook java = new TextBook("John", "Java", 5, 20, 5.00);
TextBook beans = new TextBook("Mike", "JavaBeans", 6, 21, 5.00);
ReferenceBook ref = new ReferenceBook("Jones", "Standard Class Library", 6, 23, 5.00);
ref.addConference("Meeting");
ref.printConferences();
beans.addSchool("UTSA");
//beans.printSchoolsAndCopies("c++");
catalog.addBook(ref);
catalog.addBook(java);
catalog.addBook(beans);
catalog.printCatalog();

Similar Messages

  • Two equal objects, but different classes?

    When programming on binding Referenceable object with JDK version 1.5.0_06, I have encountered a very strange phenomenon: two objects are equal, but they belong to different classes!!!
    The source codes of the program bind_ref.java are listed as below:
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++
    import java.lang.*;
    import java.io.*;
    import java.util.*;
    import javax.naming.*;
    import javax.naming.spi.ObjectFactory;
    import java.util.Hashtable;
    public class bind_ref {
    public static void main( String[] args ) {
    // Set up environment for creating the initial context
    Hashtable env = new Hashtable();
    env.put( Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.fscontext.RefFSContextFactory" );
    env.put( Context.PROVIDER_URL, "file:/daniel/" );
    Context ctx = null;
    File f = null;
    Fruit fruit1 = null, fruit2 = null;
    byte [] b = new byte[10];
    try {
    ctx = new InitialContext( env );
    Hashtable the_env = ctx.getEnvironment();
    Object [] keys = the_env.keySet().toArray();
    int key_sz = keys.length;
    fruit1 = new Fruit( "Orange" );
         SubReference ref1 = fruit1.getReference();
    ctx.rebind( "reference", fruit1 );
         fruit2 = ( Fruit )ctx.lookup( "reference" );
         System.out.println( "ref1's class = (" + ref1.getClass().toString() + ")" );
         System.out.println( "fruit2.myRef's class = (" + fruit2.myRef.getClass().toString() + ")" );
         System.out.println( "( ref1 instanceof SubReference ) = " + ( ref1 instanceof SubReference ) );
         System.out.println( "( fruit2.myRef instanceof SubReference ) = " + ( fruit2.myRef instanceof SubReference ) );
         System.out.println( "ref1.hashCode = " + ref1.hashCode() + ", fruit2.myRef.hashCode = " + fruit2.myRef.hashCode() );
         System.out.println( "ref1.equals( fruit2.myRef ) = " + ref1.equals( fruit2.myRef ) );
    } catch( Exception ne ) {
    System.err.println( "Exception: " + ne.toString() );
    System.exit( -1 );
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++
    All the outputs are shown as below:
    =======================================================
    Fruit: I am created at Mon Jun 18 11:35:13 GMT+08:00 2007
    SubReference: I am created at Mon Jun 18 11:35:13 GMT+08:00 2007
    --------- (i)subref.hashCode() = (-1759114666)
    SubReference: I am created at Mon Jun 18 11:35:13 GMT+08:00 2007
    --------- (i)subref.hashCode() = (-1759114666)
    FruitFactory: obj's class = (class javax.naming.Reference)
    FruitFactory: obj's hashCode = -1759114666
    FruitFactory: obj = (Reference Class Name: Fruit
    Type: fruit
    Content: Orange
    FruitFactory: ( obj instanceof SubReference ) = false
    FruitFactory: subref_class_name = (Fruit)
    Fruit: I am created at Mon Jun 18 11:35:13 GMT+08:00 2007
    ref1's class = (class SubReference)
    fruit2.myRef's class = (class javax.naming.Reference)
    ( ref1 instanceof SubReference ) = true
    ( fruit2.myRef instanceof SubReference ) = false
    ref1.hashCode = -1759114666, fruit2.myRef.hashCode = -1759114666
    ref1.equals( fruit2.myRef ) = true
    ========================================================
    I hightlight the critical codes and outputs related to the strangeness with bold texts.
    Who can tell me what happens? Is it really possible that two objects belonging to different classes are equal? If so, why that?

    It can also depend on how you implement the equals method.
    class Cat {
        String name;
        Cat(String n) {
            name = n;
    class Dog {
        String name;
        Dog(String n) {
            name = n;
        public boolean equals(Object o) {
            return name.equals(o.name);
        public static void main(String[] args) {
            Dog d = new Dog("Fred");
            Cat c = new Cat("Fred");
            System.out.println(d.equals(c));
    }

  • Two problems with custom kernel

    I get two problems with my custom kernel that is not using initrd and otherwise working fine:
    1) initscripts does not print anything, i.e., I see the kernel messages and after a short while the login prompt. It seems to start the daemons, however, since my network is working. During shutdown the printout is working as usual.
    2) the machine does not power off properly (just hangs/stops after saying that is now powers off).
    I am missing some kernel options? Or do I have to configure something differently for not having an initrd?
    Thanks,  CC

    ccom wrote:I now re-compiled with Arch Linux's default settings (except for SCSI, SATA, and filesystem drivers built in) and noinitrd in GRUB. I get the same two problems. What is initrd doing that I missed?
    how about display drivers? are you compiling them in the kernel or as external modules?

  • Little problems with two sensors

    Hi
    I've got a problem with two sensors.
    First, the luminosity sensor. I'd like to set the brightness to a fixed value. It would not vary from darkness to bright sunlight.
    Then, when i'm typing in landscape mode, it often switches back to portrait mode, wich make me terribly angry as i lose too much time.
    How can i solve these two problems ?
    Is there a special app?
    Last, but least, does anyone know if an app that would allow to take HDR/exposure blending pictures exist ? It'd take 3 to 5 photos with different exposures, and if it merged them to a good tonemapped picture it would be perfect.
    Thanks

     The light sensor can't be set to a fixed permanent value using the phones default settings, I'm afraid. You can only adjust it's sensitivity. However, some users have reported using an app to keep the screen set at maximum brightness.
     The motion sensor which switches the phone screen orientation has become more sensitive after the recent PR 1.1 update, so not a lot can be done about that either, apart from trying to hold the phone as steady  as possible when using it.
    Finally, there isn't any HDR available for the N8 at this time, nor is there any setting to increase the exposure time to something like a second, which would be a nice feature to add to  a great camera.
     All the best.
    Ray

  • I am experiencing two problems with iTunes on my iPhone 5s.

    I am experiencing two problems with iTunes on my iPhone 5s.
    Issue 1: iTunes Match
    Some song playback is merging songs. I select “Song A” to be played and midway through the song it begins playing “Song B” however when I look at my phone it indicates that “Song A” is still playing even though the actual music is not “Song A”. I searched the Apple Support Community as well as the internet and this seems to be an ongoing issue back to 2012 that has not been resolved. All of the “fixes” that are provided do not work. For example, update/sync iTunes Match, delete the song from your iPhone and re-download from the cloud or delete the song from your iTunes including the iCloud and re-download. None of which worked. I even tried to complete erase the song from my computer hard drive and restarted my computer and then re-downloaded the song and it was still not working.
    Issue 2: iTunes Preview Track
    I am unable to preview any music on iTunes through the iTunes app on my phone. I have signed out of my user ID and restarted my phone and then logged back in and it did not fix the problem. My iTunes Match and iTunes radio are allowing me to play music. My software is up-to-date.

    Same problem here, Im running the latest version of iOS 7 on my iphone 5S (ipod 5S) bricked lol. It was working fine and then a mates baby grabbed my phone and dropped it (not very high) then it went off so i turned it on and BAM i got the grey backround with the apple logo on it so, I waited, Then it went to BSOD and got stuck in that loop, I then done a manual reset I was able to turn it off thats all. I tried restore in recovery mode with the latest itunes it come up with Unknown Error, error code (14) (something to do with unreconizable USB) tried many diffrent USB ports but sadly nothing, I then tried DFU mode with itunes still not working. Im really stuck on this one I need some assitance PLEASE! HELP!
    No aftermarket apps on iphone 5s
    Latest iOS 7 on iphone 5s
    Latest itunes 11.1.5.5
    Running Windows 7 (good comp)

  • How do I sync two ipods with two different IDs on the same computer?

    How do I sync two ipods with two different IDs on the same computer?

    Simply connect them.  One computer with one iTunes can manage multiple devices.  They're tracked by S/N but you might wish to assign them unique names so that you can track them yourself.
    The only minor issue is app updating and purchases while on the computer.  It's necessary to log out and back in to the "correct" ID.  Much easier to do these things from the iPods.

  • Problem with two of my business rule triggers

    Good morning every one,
    I have a small problem with two of my business rule triggers.
    I have these tables:
    pms_activity
    csh_cash
    csh_integrate_leh
    csh_integrate_led
    and my process goes like this:
    upon approval of a row in my pms_activity table I have a trigger that insert a row in my csh_cash - and in the csh_cash table I have a trigger that will insert in the csh_ingerate_leh and csh_integrate_led.
    my problem is pms_activity does generate a row in csh_cash but the trigger in the cash does not fire to generate a row in the csh_integrate_leh and led tables.
    I have generated in the following order after I created my business rule:
    I have generated the table from the designer (server module tab)
    I have generated the CAPI from the head start utility
    I have generated the API from the designer
    I have generated the CAPI from the designer
    I have run the recompil.sql
    I have checked that my business rule trigger is enabled and should run on insert and no where restriction
    === this is my business rule logic ======
    l_rule_ok boolean := true;
    begin
    trace('br_csh001_cev (f)');
    csh_gl_pkg.csh_gen_integ_jvs(p_id
    ,p_ref_num
    ,p_own_id
    ,p_trt_id
    ,p_value_date
    ,p_description
    ,p_amount
    ,p_cur_id
    ,p_gla_dr
    ,p_gla_cr
    ,p_gla_pl
    ,p_gla_rev
    ,p_gla_eqt);
    return l_rule_ok;
    exception
    when others
    then
    qms$errors.unhandled_exception(PACKAGE_NAME||'.br_csh001_cev (f)');
    end br_csh001_cev;
    ==== end =======================
    Any help will be appreciated as I have struggled with this for two days.
    Thanks

    hmmm...
    Try resetting it again and restoring with the same backup file...
    Does the phone work properly once you've reset it before you try restoring? A lot of people here have experienced problems restoring from backups... could be worth forgetting about it and starting from scratch.
    You could try contacting your nearest Nokia Service Centre (www.nokia.com/repair) and see if they can do anything - it may need the firmware reinstalling or upgrading... possibly... give them a call though and see.
    Nokia History: 3110, 5110, 7110, 7110, 3510i, 6210, 6310i, 5210, 6100, 6610, 7250, 7250i, 6650, 6230, 6230i, 6260, N70, N70, 5300, N95, N95, E71, E72
    Android History: HTC Desire, SE Xperia Arc, HTC Sensation, Sensation XE, One X+, Google Nexus 5

  • I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server wher

    I have a problem with two PDF's when trying to open them through a link on a web page. The two PDF's open fine with Adobe on my own PC and on the server I have copied it to but when they are opened through a link on a web page (pointing to the server where the PDFs open fine) I get an error 'There was an error processing a page. Invalid function resource' The other one just doesn't open at all. Can anyone help with this please?

    Hello,
    Are the pdf linked correctly in the website? Is this a public website? If yes, please post the link here.
    ~Deepak

  • Problem with two monitors while using Photoshop, windows move from 2nd screen to 1st screen.

    Problem with two monitors while using Photoshop, windows move from 2nd screen to 1st screen.
    I saved a new workspace and it did not help.
    No problem before I went to Maverick.

    I found the fix, go to System Preferences and open Mission Control and uncheck the box to keep monitors as they were (When switching to an application...........)

  • Two problems with the newly implemented WF in UWL

    Hi all:
           Finally I could see WF of leave request  in UWL , but there seems to be two problems with it.
           The first is workitems disappear very slowly, for example , when approve it, the workitem would disappear at once at backend, however, workitems would disppear in five minutes.
           the second is for example employee A submits 5 five applications (just for example ), as click one workitem, five applications would appear the  application list .
          could you please kindly give some suggestoins ?

    Hi,
    reduce "Default Cache Validity" value to 1 from Universal Worklist Service Configuration link under System Administration -> System Configuration -> Universal Worklist.
    you can configure deltapullmechanism also.
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/eb/101fa0a53244deb955f6f91929e400/frameset.htm
    Regards,
    Koti Reddy

  • Two Problems with iPod Nano!

    Hi Community!
    As I have already written in the topic, I've got two problems with my new iPod Nano:
    1) I charged the iPod over USB 2 and my dockingstation already about five hours, but the red sign and the message that I don't have to disconnect my iPod is still there (battery status shows full)
    2) With the docked iPod my computer doesn't boot anymore. When I disconnect the iPod it works :-/
    THX for helping me!
    dynAdZ

    Thank you for helping me with my problems, but I still don't know why my iPod gives me this message, altough it is fully charged. And the flashing warning symbol drives me nuts
    Mhh I didn't find an image for that symbol... It's a red circle which is crossed. The manual says that there should now be a green symbol, or just the menu...??

  • Two problems with kernel26-2.6.39.1-1

    hi,
    I just upgraded system, and i found two problems with kernel26-2.6.39.1-1
    first one is that i cannot use "reboot", the screen was black.
    second, i cannot use " openconnect" to connect the vpn. and the error is
    CSTP connected. DPD 30, Keepalive 20
    Error: either "to" is duplicate, or "ipid" is a garbage.
    Connected tun0 as XXX.XXX.XXX.XXX, using SSL
    Continuing in background; pid 1661
    DTLS handshake failed: 2
    after i downgraded the kernel to kernel26-2.6.38.8-1, both problems were solved. so, i think, there should be something wrong with  kernel26-2.6.39.1-1

    thanks for replies.
    " poweroff" was ok. but "reboot" didnt work (kernel26-2.6.39.1-1).
    after i run "reboot",
    the xorg was first killed,
    then some   words showed on the screen line by line,
    finally, as far as i remenber, it stopped at "waiting for XXXXXX" or "XXXXXsignalXXXX".
    im sorry i forget the exact words. but i think they are the last words we can see if we run "reboot"

  • Two problems with audio clips

    Hello,
    I'm having two problems with audio clips:
    1. When I try to drag a clip from the viewer, I can't do it because it won't let me drag the clip. It only lets me drag the pointer around within the clip.
    2. When I drag an audio clip from the browser into the timeline I don't get any audio, just a series of beeps (and yes, my audio media is on-line -- I can listen to it in the viewer, just not the timeline).
    What am I doing wrong?
    Thanks.

    1. Drag the little hand on speaker icon to drag from
    the Viewer...
    Thanks! (Does it actually say that in the documentation anywhere? I try to RTFM, but the FM seems to be a little, er, mute on this point.)
    2. It means your sequence settings don't match the
    properties of the source audio you're putting in it,
    and you either need to change the settings in the
    sequence, or render the audio.
    Ah, that would explain it. Thanks!

  • Two problems with SB X-Fi

    Hello I have two problems with my music card (Sound Blaster X-Fi usb). I have home theater (Laffayete AV2000) and columns with SB squeak and central column don"t work. I have update all drivers i dont now what i can do
    Mys pc is Asus G73JH A, Windows 7 64bit

    Sorry I don't really quite understand what you are trying to say. But you can try the following method to determine if there is something wrong with the X-Fi Surround 5..
    1. Disconnect your speakers system, then connect a pair of earphones to the front, rear, c/sub ports.You can use a Y-Splitter for the Left & Right RCA connectors so that you can connect the earphones.
    2. Play a music file and listen for any squeaking noise.
    3. Repeat this for the rear and c/sub ports.
    If you think there is anything wrong with the usb sound card, please feel free to write to our customer support.

  • Two problems with iTunes (permissions issue?)

    Hello,
    I have two problems with iTunes. I am not sure if they are related that's why I post them both.
    1) iTunes doesn't delete apps after updating them anymore. This is happening since the (two?) last versions of iTunes and is the same with 10.5. The reason seems to be the permissions of the apps. Nearly all have "everyone = custom". Therefore I have to enter my admin password when I try to delete them manually. And iTunes itself cannot delete them on its own, of course. Why is this happening? Why is iTunes assigning such permissions to downloaded apps?
    2) I can't login to my account from within iTunes anymore. That is also happening since quite a while. I am logged in (my ID is shown in the top right of the store) but cannot access my account details. iTunes asks for my password but after entering it the login mask appears again. It's not the password itself, it is correct.
    Any suggestions?

    Correct answer to find here:
    https://discussions.apple.com/thread/1215039?start=0&tstart=0

Maybe you are looking for