Answer by Federico klez Culloca for when using java return vs break
In this case it works because break exits the loop and goes to the end of the method which immediately returns. Which is functionally equivalent to returning immediately.But in this case, for...
View ArticleAnswer by Federico klez Culloca for Does the original list decrease in size...
They may point to the same elements but they're different containers. The Queue is not backed by that list. References to the elements are copied from the list to the queue, but if you remove something...
View ArticleJavascript phone number validation
I need to validate a phone number in javascript.The requirements are:they should be 10 digits, no comma, no dashes, just the numbers, and not the 1+ in frontthis is what I wrote so farfunction...
View ArticleComment by Federico klez Culloca on Creating database in Netbeans 15
How long is "forever"? Also, does it complete eventually or it just hangs there?
View ArticleComment by Federico klez Culloca on read non latin char from json string in java
Looks to me like the json simply contains invalid characters and there's no way to convert them to anything sensible.
View ArticleComment by Federico klez Culloca on Not sure if I am missing a Java Prerequisite
How are you compiling and running this? Did you include JPlay in your classpath?
View ArticleComment by Federico klez Culloca on What's the reason to call/create...
Also, what if tomorrow you need the constructor to do other stuff after setting values? Are you going to hunt down every call to the default constructor and add whatever it needs to do down there? What...
View ArticleComment by Federico klez Culloca on What can cause FileAlreadyExistsException...
Just to be clear, the customer is getting this exception and you're not? Are you absolutely positive you're running the exact same code and they're not using an older version of your software? (or...
View ArticleComment by Federico klez Culloca on how to deploy java web application in...
Hello and welcome. This site is not the place for full tutorials. Have you tried searching for a solution on your own before asking here? Where did you get stuck? What didn't work?
View ArticleComment by Federico klez Culloca on I am trying to get data from the web...
Please don't tag unrelated languages. Tag the one you're asking about instead.
View ArticleComment by Federico klez Culloca on My method in Java return always true or...
Hello and welcome. Please explain what you expect to happen (and why) and what happens instead.
View ArticleAnswer by Federico klez Culloca for My method in Java return always true or...
In your second constructor (the one you're actually using in your main method)public Motorcycle(String name, int yearOfProduction, int price, int weight, String color, String engineType, boolean...
View ArticleComment by Federico klez Culloca on How can I get many integers as variables...
@Jorn depends on the context. For example if this is homework and splitting + parsing is the point of the exercise then using a parser for date may defeat the purpose of the exercise. Since OP didn't...
View ArticleComment by Federico klez Culloca on getting syntax error on a query even if...
Please provide a minimal reproducible example.
View ArticleComment by Federico klez Culloca on How does java.c determine which to call...
Likely via platform-dependent makefiles, or whatever is used to compile the source code. TL;DR, when you compile the source code, the build system detects which OS you're running (or accepts a command...
View ArticleComment by Federico klez Culloca on Cannot run program (java) in (directory...
Please post a minimal reproducible example that reproduces the errors, otherwise we're just throwing guesses.
View ArticleComment by Federico klez Culloca on Encryption algorithm in which length and...
Hello and welcome. Please [edit] your question and show the code you have, give an example input, the output you expect and the output you're currently getting.
View ArticleComment by Federico klez Culloca on Intellij not able to understand Class and...
What does the source tree look like? What did you open with intellij? Did the project provide a project file? Please give some more information about the situation.
View ArticleComment by Federico klez Culloca on How j += j in for loops returns the...
Please add the code that prints what you're showing.
View Article