Category "parsing"

True-way solution in Java: parse 2 numbers from 2 strings and then return their sum

Given the code: public static int sum(String a, String b) /* throws? WHAT? */ { int x = Integer.parseInt(a); // throws NumberFormatException int y = Integer

How to validate Hour and Minutes that came from a Swing textBox?

I have a window that contains a HH:mm time TextField in it, in 24 hours format I need to validate if the user entered any non valid hour, like 28:00, 99:00, 24

How to validate Hour and Minutes that came from a Swing textBox?

I have a window that contains a HH:mm time TextField in it, in 24 hours format I need to validate if the user entered any non valid hour, like 28:00, 99:00, 24

javascript parser for a string which contains .ini data

If a string contains a .ini file data , How can I parse it in JavaScript ? Is there any JavaScript parser which will help in this regard? here , typically str

Explode not working properly with dash

We have this string : "Il Responsabile della Sicurezza nelle gallerie – 1° PARTE" and we want to get two part of it: Il Responsabile della Sicurezza

XSLT: How to parse out an element into multiple variables

I am trying to parse out full name out of a single field and store them into different variables so I can use them uniquely as FirstName, MiddleName, LastName.