A:
The Sanskrit meaning is
सिपि गयात्यसं चात्र्यजगाशिचैर्यतोषिम् ।
सिपि गयात्य चैर्यमपि सिपिस्तुपयितरसमुद्रं ।।
He is the one who got the Gold, Silver and all precious objects through the use of his Anjana Mantra which is Sripi.
And the English meaning of the Anjana Mantra is:
Anjana- The Anjanam (Citron) Fruit
Note : Actually Citron is the fruit used to make the Anjana Mantra.
Q:
StringTokenizer and regex not parsing string
I have a complex string (eg, 1.5+3.2+4.1, or 1.5+4.1+3.2) and I want to parse it into integers. I have tried using StringTokenizer and a regex.
In the first case, the tokenizer returns an empty string, while the regex returns the correct answer.
import java.util.regex.*;
public class NumParsing
{
public static void main(String[] args)
{
String inputString = "1.5+3.2+4.1";
String[] tokens = inputString.split("\+");
if (tokens.length == 2)
{
System.out.println(tokens[0] + "+" + tokens[1]);
}
if (tokens.length == 3)
Related links:
Comments