Galera boa tarde.
Tenho um array que criei pra teste e esta tudo certo porém preciso carregar ele dinamicamente ,pois não sei a quantidade de linhas.
Ex:
String[] titles = {“Hoje”, “Amanhã”, “Ontem”, “Notas”};
Composer[][] composerss = {
{
/* Dinamicamente
for(int i=0;i<lista.length; i++){
new Composer(getNome,getTelefone);
}
*/
new Composer("Johann Sebastian Bach", "1685-1750"),
new Composer("George Frideric Handel", "1685-1759"),
new Composer("Johann Sebastian Bach", "1685-1750"),
new Composer("George Frideric Handel", "1685-1759"),
},{
new Composer("Johann Sebastian Bach", "1685-1750"),
new Composer("George Frideric Handel", "1685-1759"),
new Composer("Antonio Vivaldi", "1678-1741"),
new Composer("George Philipp Telemann", "1681-1767"),
},{
new Composer("Franz Joseph Haydn", "1732-1809"),
new Composer("Wolfgang Amadeus Mozart", "1756-1791"),
new Composer("Barbara of Portugal", "1711Ð1758"),
new Composer("Frederick the Great", "1712Ð1786"),
new Composer("John Stanley", "1712Ð1786"),
new Composer("Luise Adelgunda Gottsched", "1713Ð1762"),
new Composer("Johann Ludwig Krebs", "1713Ð1780"),
new Composer("Carl Philipp Emanuel Bach", "1714Ð1788"),
new Composer("Christoph Willibald Gluck", "1714Ð1787"),
new Composer("Gottfried August Homilius", "1714Ð1785"),
},{
new Composer("Ludwig van Beethoven", "1770-1827"),
new Composer("Fernando Sor", "1778-1839"),
new Composer("Johann Strauss I", "1804-1849"),
},
};
Neste caso esta fixo, mais teria que ser dinamico , mais ou menos como esta na linha comentada.
Alguem pode me ajudar.>