38 Matching Annotations
  1. Last 7 days
  2. Sep 2019
  3. Aug 2019
  4. Jul 2019
    1. Convert char array to string in java
    2. Java convert date to string
    3. Java program to check whether string is palindrome
    4. Java program to delete vowels in a given string
    5. Java reverse string array
    6. How to sort a string array in java
    7. String toUpperCase() method in java
    8. String concatenation in java
    9. String length() method in java
    10. Java remove character from string
    11. Reverse a string in java
    12. Java string trim() method
    13. Java String toCharArray() method
    14. String literal in java
    15. Java convert string to date
    16. Java program to remove vowels from a string using switch case
    17. Java program to remove vowels from string using StringBuffer class
    18. Sort string array in case insensitive order and case sensitive order java
    19. Java program to check whether string is palindrome using library methods
    20. Java program to check palindrome string using recursion
    21. String constructors in java
  5. Mar 2019
    1. print(self.num,"/",self.den)

      i particularly like an alternate construction better, because it allows you better control of the output string(this example will not insert spaces before and after the slash, unless you deliberately put them there)

      print('{}/{}'.format(self.num,self.den))
      

      It uses the .format module, that lets you replace {} structures with the print verions of variables, you can set names for them like

      print('{numerator}/{denominator}'.format(denominator = self.den, numerator = self.num))
      

      and a lot of other stuff, you can learn more reading the python documentation of the string class

  6. Nov 2017
  7. May 2017
  8. citeseerx.ist.psu.edu citeseerx.ist.psu.edu
    1. Faster Approximate String Matching Baeza-Yates and G. Navarro, R. Algorithmica (1999) 23: 127. doi:10.1007/PL00009253


  9. Apr 2017
    1. significant.

      So, there is a performance hit for using + or +=, but not enough for any reasonable string literal in code. Concatenating a long paragraph, use StringBuilder.

  10. Apr 2015
    1. Basically how CORS works is that if the Access-Control-Allow-Orign header is set in the HTTP response, then the content loaded by AJAX can be used in our script regardless of the fact it is on the same domain or some other. Now for your purpose, you can upload your local JSON file to Dropbox's Public folder and get a Public URL, that you can load by a simple AJAX call.

      Sounds interseting