Hi, I'm trying to print after dividing in a string builder and printing this string constructor to show me my code,
string.append("Memomry usage:total:"+totalMemory/1024/1024+ "Mb-used:"+usageMemory/1024/1024+ " Mb("+Percentage+"%)-free:"+freeMemory/1024/1024+ " Mb("+Percentagefree+"%)");
in the above code, “totalmemory” and “freememory” is of double type, the byte value at the point is not null, so I divide it by “1024” twice to get it in “Mb”, and “string” is a string builder variable after using this code, I just print it, getting the result as shown below,
Used Memory:Memomry usage: total:13.3125Mb-used:0.22920989990234375Mb (0.017217645063086855%) -free:13.083290100097656Mb (0.9827823549369131%)
I want to get the percentage in a two-dimensional place and the values of used and free memory in mb, as this "used: 2345.25" is remembered in this patent
We hope for your suggestions.
Thanks at Advance
java stringbuilder jsp
Syed raza
source share