Small Length string compression

Hi All,

i want to compress small length strings for example

String test="99999999999";

String test1="hut01";

since the length of the string is 11.when i compress using java compression library it exceeds the original size.is there any possibility to compress this length into smaller?

Thanks in advance

[343 byte] By [sebasmtech@java.devlopera] at [2007-11-27 7:37:28]
# 1

Of course. You just have to decide on (or devise) an algorithm.

Compressing an 11-character string seems like a rather pointless exercise though. And if you have a million of them, rather than compressing a million 11-character strings, combine them and compress one 11-million-character string.

jverda at 2007-7-12 19:18:04 > top of Java-index,Java Essentials,Java Programming...
# 2
Hi jverd, Thanks for your reply.but when i compress the 11 million string how can i use that to display in the page.(ie)when i decompress the whole string how can i seprate the combined string into seprate strings
sebasmtech@java.devlopera at 2007-7-12 19:18:04 > top of Java-index,Java Essentials,Java Programming...
# 3
that would be described in that algorithm you're going to have to design...
jwentinga at 2007-7-12 19:18:04 > top of Java-index,Java Essentials,Java Programming...