Java Quiz: Why StringBuilder Should be Used Instead of StringBuffer?August 23rd, 2008 First tell me what is the best way to concatenate large number of String objects? Is it a + b?
Most Java developers know not to use a + b (+ operator) because of huge performance problems, they use StringBuffer instead. In fact I did some tests in the past which confirms this folklore.
How To Simulate Telnet Session in JavaFebruary 16th, 2006 Often we come across procedures which need to be performed by issuing commands in a telnet session. It is relatively easy to do it manually but is definitely not suitable for automation.
How To Split Java String By NewlinesJuly 19th, 2007 Splitting a String by newline is a common requirement. When processing textual data from files or from web we need to split the data by newline boundaries.
Java Coding: How To Find Number of Characters in a String (!= String.length())November 7th, 2005 Length of string can be interpreted variously -
number of chars in the string
number of characters in the string
number of bytes in the string
String.length() gives you the number of chars in the string accurately. However a char is not necessarily a complete character.
Case Study: Debugging WordPress Plugins (PHP code)June 19th, 2005 Today I received a rather angry comment from one of my feed readers and I quote: "Come on! There was absolutely no content in the feed. Not even a teaser.
JDK1.5 - More painful bugs aka Enumeration-Woes: Solved!August 29th, 2004 Current Status: Solved
Defect:
When more than one annotation type files are compiled in javac(any of the ways like *.java or @srclist or FileName1.java FileName2.java)
then it emits and error message that it cannot find symbol for statically imported Enums. However statically importing one level up and de-referencing works.
Java EE 5 is Not Your Father's J2EEApril 10th, 2006 Java Platform Enterprise Edition (Java EE, formerly referred to as J2EE) Version 5 has arrived. Its streamlined features offer added convenience, improved performance, and reduced development time, all of which enable developers to bring products to market faster.
Java Program: Compare two text filesApril 29th, 2009 Today while managing the comments, I got a request of this sort. HI,
I have a small question in java.
J2SE 5: New wine in new bottle with old corkMarch 15th, 2005 J2SE stands for Java 2 Standard Edition. The 2 stands for version 2 of the platform.
How to Count Words in a Microsoft Word Document in Two Simple StepsDecember 1st, 2008 Suppose you have written an article and you want to count the words. It is not possible to count them each manually and surprisingly, unlike wordpress, you don't get a feature to see the number of words inside A Microsoft Word document.
Understanding Varargs in Java: 2 Minute Guide For Non-DummiesApril 30th, 2006 Varargs allows variable number of arguments in methods and constructors. Let's start with a simple example.
Guide To Simplified Java Logging using Java Core APIJanuary 17th, 2006 Java comes in with a handy logging package (java.util.logging) which eliminates the need to use external logging packages like Log4J. However it still requires some configuration which makes it cumbersome and repetitive to include in every class.
Ruby on Java = JRuby - Project to WatchDecember 18th, 2005 JRuby is a project to watch for. It implements Ruby on Java virtual machine.
Java Software Programming Examples For Beginners / Interview: How To Swap Integer (and String) Variables Without Using a Temporary VariableOctober 29th, 2005 A Simple Programming Question for Beginners
Java Software: 1-Line Sort & Uniq UtilityOctober 18th, 2005 I had to sort and uniq (create a unique set of strings) a large list with lots of duplicate. My options were to write it in Java or download cygwin and run: cat file | sort | uniq > result
Cygwin download never works for me.
June 19th, 2005 at 12:02 am
Come on! There was absolutely no content in the feed. Not even a teaser. Just ads.
Can you point me to one of your feeds with some content (and preferably no ads), or would you rather me unsubscribe?
June 19th, 2005 at 12:16 am
That’s is very surprising. Thanks for pointing it out. It was working well before. I tested it several times.
I am working to debug the problem. Can you tell me approximately from when the feed started spewing only ads?
BTW: I stopped the Ad engine for now, till I rectify the problem. However it seems the problem is elsewhere. The actual feed content is not getting posted in feed.
June 19th, 2005 at 12:22 am
Here is what I got:
Sponsor(s):
Tired of dealing with messy toner, lost fax pages and unreliable fax machines? Why pour more money into extra phone lines and machine maintenance when you can send and receive faxes by email? eFax is the #1 paperless faxing choice of individuals and businesses worldwide. Get a local fax number to send and receive faxes right from your email inbox. It’s the smart way to access and organize your faxed documents. Try eFax Plus free for a month.
You are on the phone with your client, going through an RFP that you emailed them. You hear them flip through the pages. Suddenly, they ask: “How much will this cost?” This happens every day, right? Not with GoToMeeting, the easiest way to hold online meetings. You can present, share, and field questions - right from your desk. So you stop the “skip ahead syndrome” before it starts. Try it FREE now.
© 2005 blog.taragana.com. This RSS Feed is for personal non-commercial use only. If you are not reading this material in your news aggregator, the site you are looking at is guilty of copyright infringement. Please contact legal@taragana.com so we can take legal action immediately.
June 19th, 2005 at 12:29 am
Can you please tell me from when it started happening?
I saw the problem with the main feed and some other feeds like technology and web feeds.
However diabetes feed seems to be ok.
Looks like a problem with some characters in some posts. I am trying to find it. Debugging PHP is such a royal pain!
June 19th, 2005 at 12:33 am
I think it started with this one:
http://blog.taragana.com/index.php/archive/what-is-your-favorite-programming-language/
June 19th, 2005 at 12:52 am
Thanks.
Can you please try it again and let me know if the problem is fixed on your end. You will have to refresh the feed. You can use any feed url.
I have tested here on two offline feed aggregators.
The problem was with Y!Q (Related Search) plugin.
Thanks again for the catch.
June 19th, 2005 at 5:14 am
Even shorter:
int count = new StringTokenizer(args[0]).countTokens();
or
int count = args[0].trim().split(”\\s”).length;
June 19th, 2005 at 10:43 am
The regex is fine when you just deal with English, or other alphabetic languages, but when you’re dealing with Chinese or other Asian languages, your solution won’t work. Instead, you’d rather use Java’s locale specific String collators, in java.text.*. It’s much cleaner to use this approach, than looking for the simplest one-liner solution for English.
December 8th, 2005 at 2:56 am
Dear Sir,
We are Stuckup in a code where we have to translate Indian rupees into words.
(e.g 1234.53–>?????)
April 13th, 2006 at 3:08 pm
array to count how many numbers are eqauls
April 13th, 2006 at 3:10 pm
array prgam solution to count how many numbers are equals
August 1st, 2007 at 5:16 am
how to break the string value
June 6th, 2009 at 6:11 am
write a program to find largest word from given sentence..