Skip to content

Tag: java

Java Optional query string paramters and Server side API’s

Here is my requirement: Step Five: Add searching by title This method’s purpose is to enable searching by title. You’ll pass in an optional query string parameter that returns all auctions with the search term in the title. In AuctionController.java, return to the list() action method. Add a Strin…

Java Project Build and run problem with FX

i’m trying run a project with this architecture… And, when i press “Run” button the code gives me this error… My code of my Main… And i have this run cofiguration: –module-path “C:UsersGiovaDownloadsjavafx-sdk-17.0.0.1lib” –add-modules=javafx.control…

Why String index out of range?

below is my code for Leetcode 9 Palindrome Number. It shows “String index out of range error” for line 8 when the testcase is 121. Can anyone tell me why this happened? Thanks! Answer In the while loop, j remains constant whereas your “s” is reducing 1 char each loop. Example: as you s…

Action bar content is not hiding

so i want to use toolbar but when i change DarkActionBar to NoActionBar in the styles,action bar doesnt remove completely and app title is on my toolbar. https://i.stack.imgur.com/0X722.jpg here is my xml code: what can i do? Answer i think you have in MainActivity code like this and you got the result as sho…