Tagged Questions
1
vote
3answers
116 views
How should I read coordinates from a text file?
I have a text file with lines that look like this:
Robot(479.30432416307934|98.90610653676828)
Robot(186.42081184420528|213.11277688981409)
Robot(86.80794277768825|412.1359734884495)
or, more ...
3
votes
2answers
184 views
Custom parser for named parameters in prepared statement
I'm creating a small extension to the JDBC API, with the hope of automating some common tasks and avoid boilerplate code.
One of its features will be a basic support for named parameters in prepared ...
2
votes
3answers
893 views
Parse an XML file using objects / methods
So I spent a while this morning creating an xml parser in java which is part of a job interview. I would love to have some people tear it apart so I can learn from any mistakes that I made so I can ...
7
votes
4answers
4k views
Simplify splitting a String into alpha and numeric parts
Requirement: Parse a String into chunks of numeric characters and alpha characters. Alpha characters should be separated from the numeric, other characters should be ignored.
Example Data:
Input ...
2
votes
2answers
122 views
Can you guys look at my java project and give me some tips?
So I feel like I'm a good coder, but that's from my point of view. Can you take a look at my code and give me some tips or criticize me on my code. Or give me some tips or things to add or make things ...
5
votes
1answer
535 views
Parse Java source code
I have a bunch of simple interfaces like this one (pretty enough formed, but not guarantee)
package com.example.sources;
import com.google.gwt.resources.client.ClientBundle;
import ...
4
votes
2answers
355 views
Code review - parse a query to arrays
I have a query like this "abc=1, def=2, ghi=3" and I need to parse it into arrays like this keys = [abc, def, ghi] and values = [1,2,3]
currently my code is like this
String[] terms = ...
6
votes
2answers
424 views
Are there any ways to improve my HTTP request path parser?
I have written a method to tokenize HTTP request paths such as /employee/23/edit.
protected void compile(String path){
int mark=0;
for(int i=0; i<path.length(); ++i){
...