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. Log onto incoming mail server(POP3) - failed
View Tutorial          By: dragos at 2012-12-13 10:41:59

2. Thanks for providing that....
View Tutorial          By: Jothimanickam.M at 2013-04-06 07:35:38

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

4. plz answr for questions about time out problem whl
View Tutorial          By: rrai at 2013-08-26 06:06:57

5. U did'nt explain super(a,B)
View Tutorial          By: Rafiqullah at 2013-12-16 10:30:41

6. hi,
i need to connect to server named xxx,i

View Tutorial          By: annamalai at 2012-05-21 10:09:52

7. It was really helpful.... i cleared my lab test wi
View Tutorial          By: kishore at 2009-01-21 22:30:08

8. /*Overridding & equals:--> Overriding is an
View Tutorial          By: Naveen Kumar at 2011-04-30 18:44:55

9. why we use int with main
View Tutorial          By: praveen at 2012-03-26 04:28:20

10. when i try to compile the two files by executing t
View Tutorial          By: Brian at 2015-08-05 12:15:37