I am to convert a C# program into Java. At one point I really don't get what is done, there. I changed the code to clarify the types and give an example.
string myString = "Test";
long l = (long)myString[0];
1) What is the [0] doing with a normal string? Is that even possible? Is it just the substring, in this case "T"?
2) How could you cast a String or character to long, if the String represents a text?