|
Hi Béatrice, Concerning your problem 1: the variable name is not defined: you defined an ARRAY called name, so you should use name[i] instead of name. Then the split method can be applied. Problem 2: You did not create, nor instantiate "longestName": is it a String? an integer? a double?... You should write the same way as you did for counter,max, totalname, longest: assign longestName to the right primitive type, and eventually initialize it to a start value (""?). You should also follow the naming rules for variables: 1st character is lowercase, each following word of the name starts with uppercase. So write "totalName" instead of "totalname"! Marco Béatrice [email protected] wrote: Hi ! I've got a problem with the homework of la 1036. I understand now how the split method works. But I can't declare it correctly, so I have two error messages. Here's my code (I found part of it in another mail). Can you help me to understand how it works ? --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaprogrammingwithpassion?hl=en -~----------~----~----~----~------~----~------~--~--- |
- [java programming] LAB1036 Béatrice beatrice . barbier
- [java programming] Re: LAB1036 Marco Versele
- [java programming] Re: LAB1036 KB9AGT
