#How to access the memory data in JAVA
1 messages ยท Page 1 of 1 (latest)
While you are waiting for getting help, here are some tips to improve your experience:
If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.
Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.
Hey there, looks like you're converting a binary message to a hexadecimal message. So there are a few questions I need to know to help you with this.
- The raw binary data, is the data being formatted supposed to be in bytes (as in 1 bytes -> 1 Hex number)? or are we taking the full string to a hexadecimal number (Binary Data -> Hex Number).
Is the second image figure 3?
Because there each element in the list is a 48 character binary string, converted to hex (2 chars per byte), separated by a space
yes
i think it's the second one but the figure 3 is the result and i assume that it's the memory data that stored in side it the result
the heck is this naming convention
I don't understand your program, what is wrong ?
this is a problem that our collage did and till now no one know what is the relation between the input and the output, so my guess is the output in the figure 3 is the memo data in hexa like assymble
no way this code would produce such an output
can we see the memory usimg java ?
wdym
the memory used by this code ?
why would you want to do that ?
they challenged us to do that
yup
Is this just, given a binary String (1,0s) figure the decoding and produce the corresponding hexadecimal output
will we use Sun.misc.Unsafe. ?
Are the values in the pdf correct? I.e. in input and output?
the collage sent us this
What is your understanding of the task?
It literally looks like a "here's a string, decode it"
Not sure why you think you need memory access or to use Unsafe etc?
my out put was like this
[08 07,00 0A,0B 00,08 09,05 04,05 0D]
Well think about it
The output is longer than the input
Under what scenarios do you typically see that?
i only see this in assembly
Nope, you see this in compression
When you zip a file for example, the .zip is usually smaller than the original file, right?
If I was to guess, that binary input is the compressed form
this is just a guess
decode it !
Exactly
Given the context of the assignment you have, it can't be a really complicated compression algo that was used
Maybe something known
If I was to guess further the task is to
- Figure out the compression algo used
- Decode it
- Figure out how to decode the decompressed text to the hexadecimal output
๐ i will try to do that thanx
But this is just a GUESS!
I could be completely wrong and could throw you in the wrong direction
it's better than nothing i was so lost, this actually could help
Sounds logical to me, maybe somebody else could disagree but it's at least pushing your mind in the right direction to approach this
Don't expect us to solve this though, especially since there's a cash prize lol
the prize is a full 10$ 
it's been 4h tbh and this could guide me
Closed the thread due to inactivity.
If your question was not resolved yet, feel free to just post a message to reopen it, or create a new thread. But try to improve the quality of your question to make it easier to help you ๐