Comment on Tutorial - How to use ArrayList in Java By Hong



Comment Added by : David Nava

Comment Added at : 2011-04-08 03:29:38

Comment on Tutorial : How to use ArrayList in Java By Hong
Muchas gracias por tu codigo. Me ayudo a resolver un problema que tenia con listas, al querer convertir un decimal a romano.

Object numerosEnteros[] = numeros.toArray();
System.out.println("\nSalida");
for(int i=0; i<numerosEnteros.length; i++){
int numEntero = ((Integer) numerosEnteros[i]).intValue();
if(numEntero!=0){
String rom = RomanConversion.binaryToRoman(numEntero);
System.out.println(numEntero+""+"\t"+rom);
}
}


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. FileOutputStream will create the file if it does n
View Tutorial          By: Peter at 2012-02-07 13:25:16

2. Thanks!! Its very helpful.
View Tutorial          By: Tawfiiq at 2012-07-06 05:29:50

3. hi, Thanks to the post.
I am stuck on step

View Tutorial          By: david_david at 2010-08-21 01:10:19

4. i have to learn java
View Tutorial          By: md arif alam at 2013-04-15 18:30:27

5. it's very easy simple progremme in java
View Tutorial          By: sambasiva rao at 2010-09-24 23:53:00

6. i don,t think so that it is sufficient to understa
View Tutorial          By: amit singh at 2009-05-27 06:54:20

7. Thank you very much for this tip.
View Tutorial          By: Lise at 2011-07-15 13:27:23

8. Please note that the above code does not work with
View Tutorial          By: mk at 2012-02-15 10:59:49

9. Its a good intro about J2ME..Thanks
View Tutorial          By: Deiveegaraja Andaver at 2012-02-10 06:53:29

10. thanks..very nice and easy to understand for new j
View Tutorial          By: Ranjan at 2011-07-22 08:34:50