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.

Results 1 to 3 of 3

Thread: How to automatically convert from Array of Classes to Class of Arrays

  1. #1
    Junior Member
    Join Date
    Dec 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to automatically convert from Array of Classes to Class of Arrays

    Hello everyone,

    I had come cross yesterday with this question on SO about automatically converting "Array of Classes to Class of Arrays".

    Since, I am very concert about cache use and performance, I am also wonder if it is really possible to implement such thing in java.

    java - How to automatically convert from Array of Classes to Class of Arrays - Stack Overflow


  2. #2
    Super Moderator pbrockway2's Avatar
    Join Date
    Jan 2012
    Posts
    987
    Thanks
    6
    Thanked 206 Times in 182 Posts

    Default Re: How to automatically convert from Array of Classes to Class of Arrays

    I would imagine that the semantics of the "new" keyword is pretty much fixed. So if you think square brackets are intuitive in a way that round parentheses aren't, the best thing to do might be to update your intuition!

  3. #3
    Junior Member
    Join Date
    Dec 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to automatically convert from Array of Classes to Class of Arrays

    For what I understand, the intuitive is refereeing about the way you will handle the data latter on.

Similar Threads

  1. How to Sort an Array using the java.util.Arrays class
    By JavaPF in forum Java SE API Tutorials
    Replies: 2
    Last Post: May 17th, 2014, 01:16 AM
  2. Replies: 1
    Last Post: December 22nd, 2011, 09:55 AM
  3. using variables from other classes in arrays :/
    By mozyman in forum What's Wrong With My Code?
    Replies: 1
    Last Post: November 30th, 2010, 11:26 PM
  4. Program to populate all array values using the java.util.Arrays class
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 0
    Last Post: April 7th, 2009, 05:31 AM
  5. How to Sort an Array using the java.util.Arrays class
    By JavaPF in forum Java Code Snippets and Tutorials
    Replies: 0
    Last Post: December 1st, 2008, 09:02 AM

Tags for this Thread