A String contains many chars, so you need a method like charAt that allows you to specify which char you want. There's no general way to turn a whole String into one char - eg supposing there were such a method, what would you expect Character.parseChar("ABCDEF") to return?
i understand what he explain to me, but i though that method also can convert into char instead of using charAt(0). :):)
Do u know what a "Char" is?
And BTW, why do u not want to use charAt(0)?? And what are u going to do with the character? If u are just going to do some comparisons and if ure sure the user will enter only a character u can leave it as a string itself.. (with one character)
Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...
I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...