#How to access the memory data in JAVA

1 messages ยท Page 1 of 1 (latest)

left gladeBOT
#

<@&987246883653156906> please have a look, thanks.

left gladeBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

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.

icy maple
#

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.

  1. 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).
stuck solar
#

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

red spade
red spade
plucky belfry
#

the heck is this naming convention

#

I don't understand your program, what is wrong ?

red spade
plucky belfry
red spade
plucky belfry
#

the memory used by this code ?

#

why would you want to do that ?

red spade
red spade
plucky belfry
#

can i see the assignment ?

stone elbow
#

Is this just, given a binary String (1,0s) figure the decoding and produce the corresponding hexadecimal output

red spade
#

will we use Sun.misc.Unsafe. ?

stone elbow
#

Are the values in the pdf correct? I.e. in input and output?

red spade
stone elbow
#

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?

red spade
#

my out put was like this

[08 07,00 0A,0B 00,08 09,05 04,05 0D]
stone elbow
#

Well think about it

#

The output is longer than the input

#

Under what scenarios do you typically see that?

red spade
#

i only see this in assembly

stone elbow
#

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

red spade
#

decode it !

stone elbow
#

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

#
  1. Figure out the compression algo used
#
  1. Decode it
#
  1. Figure out how to decode the decompressed text to the hexadecimal output
red spade
#

๐Ÿš€ i will try to do that thanx

stone elbow
#

But this is just a GUESS!

#

I could be completely wrong and could throw you in the wrong direction

red spade
stone elbow
#

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

red spade
#

the prize is a full 10$ pepekek

stone elbow
#

I saw haha

#

Looks like a fun challenge though

red spade
#

it's been 4h tbh and this could guide me

left gladeBOT
#

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 ๐Ÿ‘