How to store user data and when the data is repeated it should show error [closed] - java

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 2 years ago.
Improve this question
Example
if there are 4 slots named A1,B1,C1,D1. If first user enters A1 and when the second user enter the same slot it should error it has already been chosen.

The built-in class java.util.HashMap can do that. Read the docs, perhaps search for some usage examples :)

Related

I am doing an assignment for my Java class and I am having problems I don't understand what I am expected to put in [closed]

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 15 hours ago.
Improve this question
enter image description here
I've tried googling and I have even created a chegg account but I didn't get an explanation or what I was expected to do.
What am I expected to put in the box?
What am I expected to put in the box?

Create 64 Rows And 64 Columns Table Application Using ROOM DATABASE In android Studio [closed]

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....

In location field, type value  If current-lang is EN, then randomly type from (Dubai, Jeddah, Riyadh) [closed]

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 8 days ago.
Improve this question
I can not solve the problem
I tried to set it in an array list but i do not know how to get it randomly

How to an Array List from least to greatest? [closed]

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 1 year ago.
Improve this question
I want to make an arraylist that has random numbers and make it in order from least to greatest.
How do I do this?
Try using the
Collections.sort(your_array_name)
This sorts your array from least to greatest in place.
If you still want some more information, try this link:
https://www.geeksforgeeks.org/collections-sort-java-examples/

get the value of an embedded form variable to use in service task [closed]

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'm using embedded form in camunda modeler, and I don't know how to get the value of the form variables to use in a service task
I tried using the id of the input task but it didn't seem to be working
The answer was cam-variable-name="firstName" cam-variable-type="String", so first name is the variable name that the task can use to get the value.

Categories