java - Match number with english text -


this question has answer here:

is there easy way of matching number (0, 1, 2, ..., n) string value (zero, 1 two,...number) using java. right have 'enum' numbers, want able have more numbers ones defined in enum.

thanks in advance.

you can try this or can create map<integer,string> map=new hashmap<>(); , store number , string word there , retrieve.

additionally read this too. not sure there easy way this.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -