UDP Sockets need help on reply.getData - java

Hey community i need some help in my java code.
I get an object in the reply.getData and I want to cast the content as a string but it does not work as I want. Thank you friends
my code

This is the output i get. If you want i can give you more information about my code.
output

Related

Indenting a tree file structure from string input

Click here to see a screenshot of the assignment
Here is how the Navigation.csv looks like, where I take data from
https://pastebin.com/JXnaRTzi <-- Click on the link for code - this is my code so far, I am reading the file and making objects from each entry
Guys I need help with this assignment. I chose to do it in Java, but really it doesn't matter. I need advise and help for making the right approach on this kind of problem so it can work on a larger file. What kind of data structures should I use and maybe if it's no bother, give me a solution. I am a new developer and I'm trying to get into backend and frankly I'm a bit lost.
Click on links above to see the task details.

Json to Java List: Removing space between Objects outside the quotes

I am trying to use an online API to retrieve data.
After I get the result in JSON format I tried to convert it into a Java List, but the output I want is not coming as I desire.
Can someone help me out in this task?
I am a new developer but I can suggest since you are not getting the desired output maybe you can use a stringbuilder and a buffered reader to read the JSON and turn it into a string.
I hope that helps I am not sure this is the right answer but I can only think of this.

What are these question marks in my Android logfile?

Can someone please tell me what this means:
07-04 09:54:38.048: I/DetailActivity(15496): Title that is set : ��Le
I got this from a log file for an android app that I am writing. This is in a String variable and the data comes from a Parcable method that I used to pass data from one activity to another. Please let me know if you need the code, but I'm hoping someone can explain what they are rather than w
Looks like a character encoding issue. The two characters are represented by a series of bits in your app (probably UTF-8) that do not translate to ASCII.
Read Joel on Software's blog post on the subject.

About JWKTL(JAVA) and how to use the same

I want an API in java which would give me the meaning of words. I tried using JWKTL but I am not getting it. Could anyone direct me regarding this. Thank you.
Have you checked WordNet?
But if you're interested in Wiktionary, you may consider checking JWKTL alternative: Wikokit

Conversion of text to picture-message?

Friends,
I need to know how to convert a text to a picture-message(.ota) format in JAVA for sending through mobiles? I am developing a software that sends the picture-message to another mobile via serial-port.
Could anyone help for creating a routine for the conversion process? I need that routine to converts the given text/picture to a .ota format?
Having read the article about the file format I would say it doesn't sound all that complicated. The basic steps are pretty much outlined and could be implemented within the hour.. Guessing you've that that already by now?
(And if so, mind sharing the code to solve the question? ;) Shouldn't need to be anything over a few hundred lines, right?)

Categories

Resources