Top "Tostring" questions

"toString" or "ToString" is a major formatting method or function used in high level programming languages.

BigInteger.toString method is deleting leading 0

I am trying to generate MD5 sum using MessageDigest. And i am having following code. byte[] md5sum = digest.digest(); …

java tostring biginteger
Kotlin - generate toString() for a non-data class

Situation: I have a class with lateinit fields, so they are not present in the constructor: class ConfirmRequest() { lateinit var …

java kotlin tostring
Double ToString - No Scientific Notation

I just came across the wonderful "feature" that .NET will by default do Double.ToString() using scientific notation if there …

c# .net double tostring
Trying To Get The Name Of A Variable as a String VB.NET

I'm trying to return the name of a variable as a string. So if the variable is var1, I want …

vb.net variables reflection tostring var
Is it possible in Java to override 'toString' for an Objects array?

Is it possible in Java to override a toString for an Objects array? For example, let's say I created a …

java arrays string tostring
What does it mean when there is a number parameter passed to toString?

I'm just wondering what it means to attach a number as a parameter to the toString() method E.g. obj.…

javascript tostring
C# debugging: [DebuggerDisplay] or ToString()?

There are two ways to increase the usefulness of debugging information instead of seeing {MyNamespace.MyProject.MyClass} in the debugger. …

c# debugging tostring debuggerdisplay
StringBuilder.ToString() throw an 'Index out of range' Exception

I would really appreciate someone help me resolving the following issue: I am getting now and then the following exception: …

c# exception tostring stringbuilder
check if item can be converted to string?

I am writing a debug method. What I have is if(is_xxx($item)){ //echo output info for type } what …

php function tostring
Java numbers with radix > Character.MAX_RADIX

I have a five-character String and I want to use those five characters as an ASCII-encoded (printable) number. The simplest …

java tostring radix