Zum Inhalt springen

akull82

Mitglieder
  • Gesamte Inhalte

    4
  • Benutzer seit

  • Letzter Besuch

  1. 50.000 objekte sind eine ganz menge, vielleicht sowas wie Object[] objects = new Object[50000]; try { int index: for( int i=0; ; i++) { index = getObj().getLong(); while( objects[ index ] != null ) index++; objects[index] = getObj(); } } catch( ArrayIndexOutOfBounds e ) { } wobei getObj dein einzu sotierendes object zurück gibt
  2. eine "andere" möglichkeit String tmp; [...] try { Integer.parseInt( tmp ); } catch ( NumberFormatException e ) { // kein Int !!! }
  3. akull82

    Connection Pooling

    schau bir mal die commons-dbcp von jankata an
  4. he, eine frage zu deinen objkten, was unterscheidet sie von einander, also wonach soll sotiert werden ? im allg. würde ich sagen implementiere comparable und versuch Arrays.sort zu nutzen.

Fachinformatiker.de, 2024 by SE Internet Services

fidelogo_small.png

Schicke uns eine Nachricht!

Fachinformatiker.de ist die größte IT-Community
rund um Ausbildung, Job, Weiterbildung für IT-Fachkräfte.

Fachinformatiker.de App

Download on the App Store
Get it on Google Play

Kontakt

Hier werben?
Oder sende eine E-Mail an

Social media u. feeds

Jobboard für Fachinformatiker und IT-Fachkräfte

×
×
  • Neu erstellen...