I have a task at hand for designing persistence layer for an application that should be generic. It is kind of application that will provide infrastructure for doing activities.I need help regarding how should my approach be towards it . Persistence can be through either XML or through database or through configuration files. Please provide me points to keep in mind as well as any special design considerations I should be aware of.
Hello! Can you please help me with this kind of scenario
"I have Jtable with contents and checkbox every row
and my checkbox outside is the Select All function to select the content inside of my table"
I dont know the method of it but i have already my code in JTable, i just want to add it to my application.
I mean, I have two columns and the values inside is repeating or the same. As you can see in my codes, i put a vector that holds in my selected file and i want the value of it print in the table.
I want my output example in the console:
You should use "binary chop", not random values. For each response you need to take half the distance between the current and previous guess. If the user says "higher" then add it to the guess, else subtract it. So the sequence for your values would be something like:
Computer : 75 User : chose 53
subtract half of 75 - 0 : 38 Higher
add half of 75 - 38 : 57 Lower
subtract half of 57 - 38 : 48 Higher
add half of 57 - 48 : 52 Higher
add half of 57 - 52 : 54 Lower
subtract half of 54 - 52 : 53 Correct!