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



Ask a Question

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. good....
View Tutorial          By: Rini at 2013-01-08 10:44:54

2. thanks for the definition...more power :)
View Tutorial          By: saluki at 2011-07-19 05:36:00

3. finally i got it !!! thanks a lot!!! you really he
View Tutorial          By: maher at 2010-11-11 02:44:07

4. Good piece of information explained wonderfully. !
View Tutorial          By: Juzar at 2009-07-23 00:24:40

5. Exception in thread "Thread-0" java.lang
View Tutorial          By: yash at 2009-09-16 06:12:32

6. great work..keep it up.
View Tutorial          By: faizaan at 2011-04-29 12:23:39

7. hi ,
this is prakash and i want to know how

View Tutorial          By: prakash at 2010-05-24 07:27:46

8. I have maked all you said and when I open jsp I am
View Tutorial          By: ismail at 2011-03-16 04:08:53

9. Why this exception at run time?

Fri

View Tutorial          By: Sebin Joseph at 2011-04-01 06:03:17

10. well understood
View Tutorial          By: shanthini at 2014-04-07 17:19:20