Skip to main content
Share Your Experience: Take the 2024 Developer Survey

All Questions

Tagged with
Filter by
Sorted by
Tagged with
3 votes
1 answer
175 views

Parsing Java's class file

The structure of a class file consists of a single structure (presented here using pseudostructures written in a C-like structure notation): ...
Harith's user avatar
  • 7,504
2 votes
1 answer
53 views

Parsing one UserData type to a preview

I am currently developing a web app and am using Spring as a Backend. I have some user data that is provided by one of our services and I need to display it in my frontend. The subject of the code ...
monamona's user avatar
  • 425
0 votes
1 answer
99 views

Retrieve data from an XML file in Java

few months back I did a code test for a company and I quickly managed to solve it within 5-10 minutes. But, I got rejected because it wasnt "good enough". What is good enough? they said its ...
Con101's user avatar
  • 3
2 votes
2 answers
623 views

Parse a text file, and map to an out-of-scope POJO

I need to parse a file, with a standard formatting: ...
Maxime's user avatar
  • 123
1 vote
2 answers
174 views

Parse string using character value for Unicode characters

I added the getCValue method to reduce the cyclomatic complexity, but the cyclomatic complexity still persists. How can I reduce it? Can I change this code using ...
stromboli's user avatar
3 votes
1 answer
159 views

Processing a binary file with buffer length tags

I am trying to process a very large binary file using MappedByteBuffer from java.nio package. This is how the data looks like in the file: ...
SuhasG's user avatar
  • 33
1 vote
2 answers
205 views

Function to read a file until next token

I've got this function which reads an entry until the next starting Token determined through a function, as the nature of the token is flexible. Usage: ...
Eldros's user avatar
  • 449
3 votes
0 answers
117 views

Mini Scheme interpreter

Right now, I'm working on an interpreter for a subset of the Scheme programming language. It supports lambdas, let/let*/letrec, procedures, combinations, ...
TheSinisterStone's user avatar
0 votes
2 answers
1k views

Good practices for parsing this text file

I have the following .txt file structure that i want to parse in Java(8): ...
singh raj's user avatar
1 vote
2 answers
218 views

Parsing words from string

I am learning Java, so I am beginner. I know I can do this with split function but I want to improve my algorithm knowledge. I will be glad if you help me. Thanks. inputStr variable is contains the ...
Mestedepsu's user avatar
0 votes
2 answers
128 views

Parse file and make output in custom List [closed]

I have a file output like this and want to do parsing and put the output into a List. The biggest problem here is the name of a wake-lock which appears after ID and runtime, in some cases, it contains ...
Danijel Markov's user avatar
2 votes
2 answers
213 views

Message encode/decode library

I write protocol messages encoder/decoder for my project. All messages have 2-bytes header (1 byte - message type, 1 byte message sub-type) and body. There are two types of messages: Plain message - ...
bw_dev's user avatar
  • 257
3 votes
2 answers
440 views

Java Reflection-based CSV Parser

I'm an experienced Java developer, however I don't have experience with reflection or Annotation classes. For fun, I tried to develop a CSV Reader class which can parse each row into a particular type....
Richard Robinson's user avatar
3 votes
1 answer
302 views

Saving data from table of COVID-19 infections in Germany

I wrote a program that saves the data from the first table of this Wikipedia article (in German) and then saves the column "Gesamt" (contains daily update of absolute numbers of COVID-19 ...
user avatar
2 votes
1 answer
280 views

Reading bytes between two quotes from a stream and decoding it to its appropriate character set [closed]

This is a component for a lexer which operates on a byte input stream that handles reading and decoding the contents of a string contained within double-quotes. The validity of the encoding is handled ...
Zhro's user avatar
  • 249

15 30 50 per page
1
2 3 4 5
12