N
N
Nikita Filatov2015-12-09 14:21:25
Java
Nikita Filatov, 2015-12-09 14:21:25

How to convert byte code to text in Java?

Is it possible to somehow translate the byte code into text in Java, or let's say int into text according to its encoding?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
alk, 2015-12-09
@M0NSTERC4T

jd.benow.ca
This thing will help you

I
Ivan, 2015-12-09
@LenLord

It is possible, different decompilers.
If this bytecode was obtained from the android apk, then I can advise specific things.

A
aminought, 2015-12-10
@aminought

Strange question, also int with its encoding. The first answer that comes to mind has already been answered, here's the second one. If we take binary code for "bytecode", and for "int to text according to its encoding" - converting a number into binary code and writing it to a text string, then:

Integer i = 42;
String s = Integer.toBinaryString(i);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question