This repository is for my personal projects written in Java.
com.dzyubak.parser is a program that searches for a number of double
data type in a given String
.
It performs like a parser or finite state machine (FSM).
- src/com/dzyubak/parser/ParserException.java
- src/com/dzyubak/parser/Program.java
- src/com/dzyubak/parser/StringToDoubleConverter.java
Running Program gives the following output:
3.14E9
-2.71828E-6
-42.0
0.0
Error! ParserException[Number can not be found in the current string.]