Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to use an EditText in my android app which enables users to enter 8 bit numbers into the column. Which need to be stored in the database and would retrieve the 8 bit number when asked to display?.I am unable to figure out how to do that. Help me with this.Thank you
Octal is base-8 number system.
You can use numbers ranging from 0 - 7.
int octal = 01 acts as an Octal number, the prefix 0 indicates octal.
You can make your EditText show only numeric keyboard and before saving it in the database check if the entry contains 8 or 9 display a message as "Not a decimal number" else save it in your database and while displaying append a 0 in the beginning and show it on your UI.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 days ago.
Improve this question
I want to create an app where i can Store 64 questions and each question will have its own 64 answers.
If i want a particular answer of any one particular question, So there i just type question Number corresponding Answer Number then i can get particular cell data..
Example:-
Question Number 5 Answer Number 7......
Please help me to provide best or efficient way to develop this app....
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I intend to let the user choose what they want to filter by choosing 1-5. If the user chooses 1, the program should ask them to enter the year they want to filter, after that, it should check the length of the input, if it is equal to 4 then it should check whether the text file contains a line that matches the input. But if the user enters 2019, which is equal to 4 digit, the record and the no such records will display at the same time.What if i only want the No such record to be disply only the year enter by the user have no record in the text file?
[textfile][1]
This is the part of the code which causes the behavior you do not like:
if(line.contains(input))
{
System.out.println(input);
System.out.println(input);
}
Change it to
if(line.contains(input))
{
System.out.println(line);
}
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I am doing a project which involves NLP. I need to transliterate Tamil String to English string(In tanglish form) like "இல்லை" to "illai"..
How can i do that using java ??
Help me with the code sample
As there are only 72 characters in the Tamil block, build a translation table and then build a new string by testing each if character can be translated before adding it to the list.
For example U+0B87 (இ) becomes i
If you are more familiar with Java and/or have a very large amount of material to translate, there are likely a few processing optimizations to speed up the process, but I suspect the above will be the base of a good solution.
If you only have a small amount of material to translate or this is a one-off job, it may make more sense to simply use Google Translate and get the input translation below the input box.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
So I am creating a program that need to create as many strings and integers as the user says. The amount is stored in wordlength, and I need to create these strings programmatically based on the input. Can somebody help me?
First, ask the user to input how many strings to store. This can be done through a Scanner.
Then, make an array of type String with length equal to the user input number.
Then, fill in the array through a Scanner with a for loop.
I hope next time you search about you problem before you write a question about it.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to implement a functionality in java where I can search by both by username or by employee number within a single search bar.
I am looking for a simple solution either at client side or at java side
Thanks in advance
Just perform the first search, if it gives a result use it. If not then do the second search.
If usernames must contain alphabetic characters and employee numbers cannot contain them then you could look at the contents of the string and decide which search to run based on that.