Win a copy of Microservices in Action this week in the Web Services forum!

salvin francis

Bartender
+ Follow
since Jan 12, 2009
salvin likes ...
Eclipse IDE Google Web Toolkit Java
Forum Moderator
salvin francis currently moderates these forums:
Mumbai
Cows and Likes
Cows
Total received
60
In last 30 days
5
Total given
104
Likes
Total received
220
Received in last 30 days
16
Total given
84
Given in last 30 days
10
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by salvin francis

Harry Kar wrote:For my searches i use DuckDuckgo I can say is almost Ad free respect google;



Here's a cool experiment I suggest you can try.
  • Setup duckduckgo as your default search engine in chrome
  • Search for any text
  • Now open myactivity.google.com


  • I searched for "I hate cabbage". See attached screenshot
    3 hours ago

    Maybe your lecturer was referring to this ? "var" was introduced in java 10.

    I would love to see your code in this way :

    17 hours ago

    Siddharth Yashaswee wrote:...You saved my day


    You're welcome. The error message gives you this hint :
    18 hours ago
    Maybe its because you misspelled: getInitParamater, it should be getInitParameter.
    18 hours ago

    Campbell Ritchie wrote:...I don't, and I think most people don't either..

    It depends on how the problem is presented to them. Some students take it like a puzzle and some take it as a homework/chore that needs to be completed.
    I am a bit curious about this triangle though. A few questions to OP :
  • Why 10 ? why not 11 or 14 or any other number? Is this input from user ?
  • Why does it stop at "10 9 8 7 6 5" ? is it because we have output 6 lines or because we have reached the number 5 as some threshold ?
  • And the most important question of all :
  • What have you done so far ? Please share your code.
  • 19 hours ago

    Ana Yo wrote:i don't think it would work


    Maybe you could share a SSCE(short self contained example) and it's output and what you expected it to be ?
    19 hours ago
    Here's a simple program that can help you out:




    outut:

    19 hours ago
    A return statement returns from the method call itself (Not always though, there could be code in a finally block that would be executed), while a break statement breaks the current loop being executed and the code continues after that.
    20 hours ago
    Hi, I suggest posting the code instead of a picture.
    Did you run the code ? What was the output when you ran it ?
    20 hours ago

    Ana Yo wrote:.. it's gonna loop thru the whole array no matter what.


    No, a break or a return statement stops the loop.
    20 hours ago
    Hi Victoria, Welcome to Code ranch.
    I like these triangle type of problems since they allow you to build up your looping skills. Can you explain the problem in more detail ?
    22 hours ago

    meenal deshpande wrote:Hi everyone. I am new to Java and not even sure it can accomplish what I am trying to do. ...


    Hi, I noticed that this exact question was posted on codeproject website. We have a rule against that BeForthrightWhenCrossPostingToOtherSites <-- It's a link.
    1 day ago

    Norm Radder wrote:The registry shows that the javaw.exe command is used to open a jar file...


    Yes, this is precisely why I dont create shortcuts to the jars directly. It defaults to the operating system's default action (e.g. what happens when user double clicks a jar). Typically, the java installation takes care of this association, but I am not sure if this is always the case. I used to keep shortcuts to either java.exe or javaw.exe. The advantage of java.exe is that it spawns a new console window alongside my program. But for swing based applications, I prefer javaw.exe
    3 days ago

    Carey Brown wrote:... If you have a shortcut to a jar file, is it run with java.exe or javaw.exe?


    See my suggestion .. don't add a shortcut to the jar, instead add a shortcut to javaw.exe with argument as your jar path. This has worked for me for a while in the past.
    4 days ago

    Danielx Anderssonx wrote:..."Lives left" had to go since the string did not like to share the line of code with .StringValueoOf().


    I dont think it has to go. I suggest following the links Campbell shared about Formatter.
    4 days ago