Tag: StringBuilder
Posts of Tag: StringBuilder
  1. String vs StringBuilder vs StringBuffer in Java

    String vs StringBuilder vs StringBuffer in Java Introduction One of the most used classes in Java is the String class. It represents a string (array) of characters, and therefore contains textual data such as "...Learn More
    StringJavaStringBuilderStringBuffer
  2. StringBuilder number of characters written per line

    Hello I've created some C# code that is writing to a .txt file using a StringBuilder object, everything seems OK, but the problem is that I need exactly 200 characters for each line. For example, when the prog...Learn More
    C#StringBuildermaxlength
  3. Getting string after a specific slash

    I have a string and I want to get whatever is after the 3rd slash so. I don't know of any other way I can do this, I don't really want to use regex if I dont need it. http://www.website.com/hello for example wo...Learn More
    C#StringBuilder
  4. java String and StringBuilder

    I am confuse about String and String Builder. Here is my simple code StringBuilder sb1 = new StringBuilder("123"); String s1 = "123"; sb1.append("abc"); s1.concat("abc"); System.out.println(sb1 + " " + s1); s...Learn More
    StringJavaStringBuilder
  5. Android: Out of Memory error StringBuilder

    In my app, I fetching data from the server in the form of JSON. The data is around 1.5 MB. The app works but sometimes it crashes while fetching data from server giving OutOfMemoryError. This is my method: pr...Learn More
    AndroidStringBuilderout-of-memoryhttpconnection
  6. Converting ASP.Net GridView HTML into a string

    We are trying to take the HTML from a GridView and store it into a String so that string can be used a a body of an email. So far we have used this coding in the code-behind: Protected Sub EmailStudentList() ...Learn More
    VB.NETASP.NETStringBuilderstring-conversionrendercontrol
  7. Mysterious Whitespace with Stringbuilder

    I'm writing a little calculator application and use a simple tokenizer to parse the user input into a list for subsequent processing. The method looks like this: public LinkedList<String> tokeniz...Learn More
    StringJavaStringBuilder
  8. Regarding Stringbuilder in c#

    is stringbuilder is same in android java and c# ?? im using stringbuilder in c#(REST Webservice).. how can i use with the same functionality in Java? or im using stringentity in java.wat is the equivalent in c#...Learn More
    JavaC#StringBuilder
  9. Why is my file not being written to?

    I'm creating a "debug/log" textfile to try to see which "background threads" are running when the app I'm working on hangs. First, as they're activated, I'm storing them in a StringBuilder: public static String...Learn More
    C#.NETStringBuilderwindows-cestreamwriter
  10. .net how to compare a stringbuilder to a string

    In vb.net (or C#) I can't figure out how to compare a stringbuilder to a string. I have searched quite a bit and can't find the answer. I had to write my own routine. Isn't there a better way? This doesn't w...Learn More
    StringVB.NETC#StringBuilder
  11. difference between string and string builder

    I am having doubt in whether to use string or string builder to append html elements like "div" and others in my page in mvc. Is there any other approach for this thing. Thanks. ...Learn More
    StringBuilderasp.net-mvc
  12. StringBuilder - Reset or create a new

    I have a condition that a StringBuilder keeps storing lines matching a pattern from a large flat file (100's of MB). However after reaching a condition I write the content of the StringBuilder varialble to a te...Learn More
    JavaStringBuilder