• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error with string array

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the following class in my Android project:



I use CompletaEspacos method to populate an array of strings. It places title in the index 0 and data in the index 1. However, when using CompletaEspacos it displays the indices different from each other. Does anyone know where I went wrong?
 
Bartender
Posts: 4179
22
IntelliJ IDE Python Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am not sure what you mean. I can barely follow the logic, but it looks like you are getting a table of date, then for each row of data you are putting all the values into a String where each value is a fixed-length (20 characters long).

What I don't understand is:
1) Why?
2) The CompleteEspacos method doesn't do any display, so I don't understand why you say "when using CompletaEspacos it displays the indices ...".
3) What do you mean 'different from each other' mean? Different how?

I think you need to explain it better. What exactly do you expect to happen. What exactly does happen. What exactly is the difference. If you can attach pictures that show what is happening and what you want to happen that might be easier to follow.
 
If you have a bad day in October, have a slice of banana cream pie. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic