Campbell Ritchie

Marshal
+ Follow
since Oct 13, 2005
Cows and Likes
Cows
Total received
193
In last 30 days
4
Total given
344
Likes
Total received
5476
Received in last 30 days
117
Total given
201
Given in last 30 days
17
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Campbell Ritchie

Welcome to the Ranch

I shall move you to our Android forum.
I suggest you break that task down into smaller pieces. Maybe start with finding out the age of a file and how to delete it. Look in the files part of the Java™ Tutorials.
1 hour ago

Randy Maddocks wrote:. . . One Flew Over The Cuckoo's Nest, Anger Management, A Few Good Men . . . .

Even in the film version of Little Shop of Horrors (no, he didn't play the plant).
5 hours ago
I tried it with const char *sample_row = "\0xb1\0xb2\etc"; but only got a newline as output. I think I am giving up here before I tie anybody else in knots.
5 hours ago

Ifraz Imanudeen wrote:. . . ("SELECT * FROM TRX WHERE BillNo = '+BillNbr.getText()+'") . . . .

What form does BillNo take in your database? Not certain, but what you are doing is comparing it for equality to a String, so you probably won't get it to work if you are storing an INT.

And . . .welcome to the Ranch
6 hours ago

David Simic wrote:. . . How can i add this pattern into array ??

I don't think you can; you can have several arrays, but a 2D array usually has to be “rectangular” and can't cope with lines of varying lengths.
I couldn't get 177 and 178 to print with %c; please supply more details.
7 hours ago

Vishal Hegde wrote:. . . . we are not doctors or nurses who attend emergency operations for whom night shift becomes mandatory to save a person...

People do banking, travel, use mains gas and electricity 24‑7. If any of those things goes down, it could result in loss of millions, accidents in travel, failure of power and water, and some of those things can kill people by the hundred. So your job is important. I agree that night shifts are harmful; that is well‑known already.
Telephone support for a shopping website, well maybe that isn't quite as crucial.



I don't have any loans...just my savings is not that much . . .

In that case, you probably have financial stability already, so sorry for misinterpreting what you said at first.
9 hours ago
This discussion has been moved to our Jobs forum: it would not fit well in MD.

At least when you go for your next job and somebody asks why you took the night job, you can simply say, “The pay was much more than I got elsewhere.” Don't know whether such support will be boring; if a server goes down, it will probably cease to be boring.
Two things worry me:-
  • 1: You don't get financial stability from a big salary. You get it from spending no more than you have got. Loans, etc., may allow you to average out spending over the year, but increasing loan balances suggest you are overspending. Draw your horns in and use the higher salary to pay off any loans, or to save some money. If you do save something, seek advice where best to invest it.
  • 2: You don't want to give the impression that you are indiscriminate about which jobs you take, nor that you change jobs frequently. Your next employer wants confidence that you will stay there for a reasonable time.
  • You may have to stay on the nights for some time, a year or two, so as to show staying power and commitment.

    Other people will doubtless have completely different opinions.
    10 hours ago
    Fortunately the first hit on that lmgtfy search is very good.

    And welcome again
    10 hours ago
    Is that because you are declaring the String inside the ()
    1 day ago
    Welcome to the Ranch

    I agree the new‑look documentaiton is not as good as the older versions, so use Java11 and the documentation for Java10. You can use any version ⩾ Java5 for HFJ, but most versions older than 8 are outdated.
    2 days ago

    Carey Brown wrote:. . .
    123 --> (reversed) 3 2 1 --> 3+2+1 --> 6

    Another hint about how you would implement it. It is easier to start with the 3, not the 2 as I mistakenly said earlier. (Sorry)
    2 days ago

    Tim Holloway wrote:. . . double the number of templates (12 instead of 6). . . .

    More likely twenty‑four. You go from queen to black queen on black square, black queen on white square, white queen on white square and white queen on black square.
    2 days ago
    Welcome to the Ranch

    What's spectrangle? Start by explaining the rules; that is the first stage to programming it.
    2 days ago