Joke Collection Website - Blessing messages - Sending a short message prompts that java.lang.long cannot be forcibly converted to java.lang.string
Sending a short message prompts that java.lang.long cannot be forcibly converted to java.lang.string
This bug must be fixed. . .
For example, as follows, I will let you develop and solve bugs.
List & lt object & gt list = new ArrayList & lt> ();
L =1l;
list . add(l);
String s =(String)list . get(0);
Running this code will throw your exception:
Java.lang.ClassCastException: class java.lang.Long cannot be converted into class Java. lang. string (java.lang.long and java.lang.string are located in the java.base module of the loader "bootstrap").
- Related articles
- Whether you are texting or chatting on QQ, you like to send "haha, yeah, yeah". What kind of psychology is this?
- IPhone shows the SMS charge for activating FaceT ime, but I accidentally pressed it. How to cancel it?
- What should I do if JD.COM forgets to pay the password?
- Interesting weekend greetings
- I happened to pass by high-speed railway station's mobile phone and received a service message: How do you know my number?
- Greetings from friends in business.
- Taobao store planning book
- Urgent: How to get from Sanmenxia to Huashan Royal Hot Spring by bus?
- How to restore Apple Cloud backup? Ios7 and ios8 are backed up in ICloud. How should I restore them? Can't use the computer, only in
- Text-to-Speech Tooltip: Sending the converted text failed and it can't be used for a long time. What happened?