Posts by Rafaelzinho • 85 points
2 posts
-
1
votes2
answers926
viewsQ: How to Print a list of numbers summed in sequence?
Program: public static void main(String[] args) { List<Long> lista = new ArrayList(); long k = 0; for (long a = 1; a <= 10; a++) { k = k+2; lista.add(k); }…
javaasked Rafaelzinho 85 -
7
votes2
answers6860
viewsQ: How to number the alphabet and add its letters getting a result for each written word?
Wanted to get the result of words with their letters summed... Example: a=1 b=2 c=3 if I type the word "bac" the result would be "6". Because you added up the three letters a+b+c=6. I tried that…
javaasked Rafaelzinho 85