yup i got the idea and it works like this
int b = new int[a.length*a.length];
//output is 9
//is this the way of getting length of 2d into 1d array?
I am currently coding in JSF, but using Java for the back-end beans. Was wondering if anyone is familiar to JSF, to help get a solution or an idea on how I could proceed.
So, if I have a database with 2 tables - Country & State,
but I don't want to have to make a call into the database in order to reduce the resources used. How would I implement in the Java bean a connection between the country and its related states?
Considering that I have the 2 selections in a dropdown menu.
a very beginner question...
i'm a newbie in programming... just started java and read about packaging... i created i directory called firstproject and put a directory with one class inside of it and a FirstProject source file in the firstproject directory itself.
i made a class in that package directory that has a private string in it and tried to invoke from FirstProject source file but
getting compile error that the string is private...
i tried changing the string into protected or even public but still getting this error...
this is the class src file...
Hello, I wanted to create a launcher for a game (Minecraft), but then I had an idea, that if I read some source codes that it would make it easier for me to make it, so I went searching for a source code , and I found one, but then I was testing it if it's working or not, and it opened, but then when I pressed launch after seconds it says that it couldn't update or something, I'm gonna put the source code file if you could please help me I'll appreciate that. SKMCLauncher-fourth[^]
The error is
The following information can be provided to the developer:
com.sk89q.skmcl.LauncherException: Something went wrong while trying to update.
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "downloads" (Class com.sk89q.skmcl.minecraft.model.Library), not marked as ignorable
at [Source: java.io.StringReader@6738ae66; line: 21, column: 27] (through reference chain: com.sk89q.skmcl.minecraft.model.ReleaseManifest["libraries"]->com.sk89q.skmcl.minecraft.model.Library["downloads"])
... 6 more
I have a Oracle DB in which all the information is stored and this information is been consumed by different teams and below is the two options i have to decide on :
1. Write a Stored procedure and give the stored procedure to the respective teams and they can call the stored procedure.
2. Write a stored procedure wrap it as an API and expose the API, different team will call the API exposed and API will in turn hit the SP and return the response to the team.
Like to know what is the PRON and CRONS with these options and what is the best possible solution to go with.