Jul
24
comment Reverse Engineering: Picture to Java Code
Then you want to build a pixel-based graphical editor; and your title is very misleading (what reverse engineering is there?)
Jul
23
comment Complete an open polygon from a KML
If there are ways, you should edit the problem to describe them.
Jul
23
comment Complete an open polygon from a KML
I do not think this can be answered "in general" - if there are ambiguous cases, such as not being able to know if red closes upwards or downwards, then the problem is ill defined, and users should either provide more input or expect wrong answers for incomplete inputs.
Jul
23
comment Reverse Engineering: Picture to Java Code
Still not clear: a 2x2 pixmap has 4 pixels. Ok, you load that into an array, and display it how? If you display it as an image, you don't need the array. If you display it via console output, there is no "same picture in JPanel"
Jul
23
comment Complete an open polygon from a KML
Can you explain why red is closed upwards while green is closed downwards? Is there a general rule such as "if both ends north of equator close upwards, if both south of equator close downwards"?
Jul
23
revised Image rendering on java Jframe
added some links and praise where due
Jul
23
revised Image rendering on java Jframe
added scaling version
Jul
23
answered Image rendering on java Jframe
Jul
23
reviewed Approve suggested edit on It is possible in regex to take new line inputs only?
Jul
22
comment Reverse Engineering: Picture to Java Code
your conversion is lossy - it is unlikely that the output from jpg-compression will be binary-equal to the original
Jul
22
comment Reverse Engineering: Picture to Java Code
Umm, to clarify - you are asking whether a picture can be converted into java code that, when executed, can display the original picture? Yes, it is possible. How easy it is depends on your definition of 'converted'.
Jul
22
comment Tesseract OCR using Java
I do believe @PeterMmm solved the mistery.
Jul
22
comment Java BufferedWriter issue [Solved]
You are probably using windows and opening the file in notepad, which does not understand \n as a terminator, and expects \r\n instead. Your problem has nothing to do with Java - open the .txt files in another editor.
Jul
22
comment Serving file resources contents from subfolder safely, securely
I trust getCanonicalPath's ability to resolve ambiguities a lot more than any pattern matching; also, if folderPath is guaranteed to be a folder's canonical path, then the link by @momo is essentially equivalent
Jul
22
comment JTable: show data containing a List
I still do not understand what happens when you click, and what you expected. Can you post an MCVE?
Jul
21
revised Reasoning about reals
added 109 characters in body
Jul
21
answered Reasoning about reals
Jul
21
comment Reasoning about reals
also fails, same error
Jul
21
revised How can I make my factorial method work with decimals? (Gamma)
added output for good answer
Jul
21
comment How can I make my factorial method work with decimals? (Gamma)
Fixed to reference actual correct implementation
1 2 3 4 5