7,116 Posted Topics

Member Avatar for rezhin_1
Re: java

THink about how you do that... it's a loop. you start with salary = 10,000 in each pass of the loop you add 5% to that when the salary reaches 20000 you exit the loop the answer is then the number of times you went round the loop

Member Avatar for jwenting
0
195
Member Avatar for Robert_79
Member Avatar for JamesCherrill

Praises be to the gods! Just when I thought all hope was lost, not just one but two proper Java questions. Maybe the road to recovery starts here?

Member Avatar for mysunindia
0
370
Member Avatar for TheVendor
Member Avatar for Onur_2

OK, looks like the answers array is `[student][answers]`. The correctA array seems clear enough. The student array seems pointless. Perhaps you can explain? Before writing a single line of code get some paper and a pen and work out the correct output for the first two or three students. Remember …

Member Avatar for JamesCherrill
0
265
Member Avatar for Raymond_12

I had the same symptoms with an SSD that died. It seems the 250Meg was the buffer size in the drive controller and when the drive itself fails all the sytem can see is the buffer. RMA time IMHO.

Member Avatar for Raymond_12
0
1K
Member Avatar for scheppy

Not sure why that code isn't working, but then I don't like the way you have forced the scroll pane into a class that should just be a list. I simplified it like this and it works OK... class DoughOverviewList extends JList { DefaultListModel doughListModel= new DefaultListModel(); Border GrayLine = …

Member Avatar for scheppy
0
407
Member Avatar for andrewll2

Dani owns the copyright to everything on DaniWeb, but I'm sure she will be happy to permit you what you want for this piece of code. Use DaniWeb messaging to contact her directly. JC

Member Avatar for JamesCherrill
0
4K
Member Avatar for scheppy

In a java string literal the backslash is an escape char, so to enter an actual backslash you need to code two backslashes

Member Avatar for JamesCherrill
0
772
Member Avatar for Violet_82

If you're thinking in OO then static is generally NOT the way. In general, if you have a form and someunderlying data model (the array in this case?) then the pattern to use is: Create an instance of the data model Pass it to the form instance when that is …

Member Avatar for JamesCherrill
0
652
Member Avatar for Phantess

> I'm trying to get a pop up as soon as a user logs in. I already have the pop up, but it keeps popping up all the results one at a time when I only need it to pop up within 15 minutes before the appointment time. ??? This …

Member Avatar for JamesCherrill
0
453
Member Avatar for abrogard

Why 2 parameters? Isn't there just one (the amount to be split)? If so you may be worrying about returning 2 values from each call, in which case: 1. You could package the two values into an array, tuple, trivial class etc depending on your chosen language 2. You only …

Member Avatar for JamesCherrill
1
518
Member Avatar for Phantess

The obvious JavaFX way to display a ResultSet is a TableView. You will find lots of examples with a quick Google, such as this one from GitHub https://github.com/seifallah/Dynamic-TableView--Java-Fx-2.0-/blob/master/DynamicTable.java

Member Avatar for Phantess
0
1K
Member Avatar for nadiam
Member Avatar for JamesCherrill
0
181
Member Avatar for Gurjit_2
Member Avatar for alan.davies
0
883
Member Avatar for WDrago

[QUOTE=WDrago;1733104]Which of these rules am I violating on line 23 where I get the error message? I'm just trying to create an instance of class like I always do. What is the non-static variable that the compiler is complaining about?[/QUOTE] It's the inner class Counter, which is not static. So …

Member Avatar for JamesCherrill
0
28K
Member Avatar for Daniel_93

> a simple stand-alone database with only and forever ONE user. This is a family tree software Are you sure that an SQL database is the bext way to go? You're going to have a lot of fun mapping between the user view of the tree and the SQL layer. …

Member Avatar for JamesCherrill
0
571
Member Avatar for Queena_1

There are quite a few programs that will burn a video file into a standard DVD, but the process is tedious and slow. Why not get a ChromeCast or equivalent and beam the video directly from the pc to the tv?

Member Avatar for JamesCherrill
0
251
Member Avatar for Rahul47

One is implemented in hardware, the other in software! Other differences follow from that, eg one is probably faster, but the other may be easier to update or fix. ps: Next time, please do not hijack someone else's old topic - start your own new topic with a suitable title.

Member Avatar for pty
2
3K
Member Avatar for scheppy

At a quick look it seems that all the cells in Col 0 share exactly the same renderer and editor , so they should all look exactly the same all the time!

Member Avatar for scheppy
0
752
Member Avatar for DAVID_135

When you write the new Person to the output file you replace/overwrite the previous contents of the file, so the file only ever contains the last Person. You can't simply append to the file because an object file has a header, so you end up with multiple headers scattered through …

Member Avatar for JamesCherrill
0
585
Member Avatar for Syafiqur
Member Avatar for rproffitt
0
598
Member Avatar for pctechconcierge

> Here is the code i have Joking aside - we can't see any code, so cannot comment on it!

Member Avatar for Anas_7
-1
439
Member Avatar for party_1

G'day to you too. Jim is right. We don't know if you are a complete beginner, a jedi master database wrangler, or anywhere else inbetween. So we have no idea at what level we should be discussing this. Help us to help you by giving us a lot more background.

Member Avatar for John_206
0
287
Member Avatar for John_165

> I should use == operator to compare the equality of two strings Hopefully that's just a slip of the keyboard, but just in case... Yes, use `==` to test for equality ( `=` is assignment). `==` works exactly as you would expect for primtives (int, boolean, char etc) but …

Member Avatar for Buy Business
0
588
Member Avatar for jyhoch

5hubham, hibathir: I'm sure you are trying to be helpful but this topic is FOUR YEARS OLD! And, the problem was reported as having been SOLVED FOUR YEARS AGO! Do you really think that the original poster is still waiting for an answer from you? Please think before posting.

Member Avatar for JamesCherrill
0
3K
Member Avatar for prnjn

Don't you think that the point of your project is to do it yourself? Nobody here will help you cheat.

Member Avatar for JamesCherrill
0
8K
Member Avatar for Erwin_2

> I see rare symbols next to the texts Maybe the file is not text, but a binary fle of text strings, eg text: `Hello<CR>World<CR>` bin: `<fieldID=1, length= 5>Hello<fieldID=1, length= 5>World` (where the <> stuff is stored as binary integers) ... in which case editing with a text editor will …

Member Avatar for SN Technologies
0
771
Member Avatar for Reverend Jim

Leaving aside al the Sci-Fi stuff, we are already facing a total collapse of society as we know it. Waves of automation, starting in agriculture, then factories, then offices, then services, now via AI in skilled services, have displaced humans from employment. The number of roles in which a human …

Member Avatar for Agilemind
0
2K
Member Avatar for janicemurby

Surely if you purchased this then you should go back to the vendor and insist they fix it or refund your money.

Member Avatar for rproffitt
0
319
Member Avatar for Aravinth_1

We do not do homework for you. Posting the homework, with or without data, will get you nothing. Show what you have done so far and explain what's stopping you. Somewone will then help.

Member Avatar for Reverend Jim
0
502
Member Avatar for Dani

> I want to focus a lot on developing new features for DaniWeb Yes yes yes! > any interest in building a Dazah app? If no, what are the main hesitations? What could I be doing to pique your interest? Social media / person to person communications... everybody has already …

Member Avatar for Dani
0
2K
Member Avatar for Jack_39

First: I congratulate you on your honesty and bravery in making that post. Second: You have already taken at least three giant steps where most others will have already failed: You recognise that you need to improve You believe that you are capable of improving You are willing and able …

Member Avatar for nigelwright7557
7
920
Member Avatar for Nightocoder201

99% certain it’s an error in your brackets. Line 79 is formatted as if it should be a close bracket, but it’s an open bracket. Suspicious!

Member Avatar for JamesCherrill
1
2K
Member Avatar for divinity02

I dont speak php, but since nobody else has answered... is php like oher languages where the scope of a variable is its immediately containing block? Because if so $sql is only in scope thru lines 16-19. If not, please ignore this.

Member Avatar for EvolutionFallen
0
283
Member Avatar for Rashmi_4

AWT was replaced nearly 20 years ago! You should be using Swing, or JavaFX. Swing was the direct replacement for AWT, and is very similar. JavaFX is the newest GUI and is supposed to replace Swing, but it’s very different to work with, so most people are still using Swing. …

Member Avatar for JamesCherrill
0
237
Member Avatar for wa0h@arrl.net

> i do want to develop the program using a powerful (ide). > i do want versions of the program to work on windows, linux, and apple desktop pcs. Java/Netbeans would be an obvious choice. JC (newbie, only programming since 1969)

Member Avatar for pty
2
498
Member Avatar for Saboor880

Congratulations on a really interesting question! *maybe* what’s going on is in the String.format you process a l-r string, then a r-l and after that the direction is still r-l when the third argument is processed. There are Unicode chars to override the direction, but more than that I don’t …

Member Avatar for JamesCherrill
0
445
Member Avatar for Angus_3

Definitely better. Pseudo-cde is for explaining algorithms, flow of control etc, so you don't need quite so much detail, and you can make up you own "syntax", eg: GET passenger photo get eye color from photo (one of blue. brown, green, unknown) get hair color from photo (one of etc …

Member Avatar for Reverend Jim
0
618
Member Avatar for hamzamuradkhanh

If you want to view & merge them online then The first page of a Google search will give you about a dozen options, all free. If you really mean offline, the I found [this](https://sourceforge.net/projects/pdfsam/) which you can execute via the command line after 20-30 seconds of Googling. Did you …

Member Avatar for hamzamuradkhanh
0
506
Member Avatar for vmanes

Flat/low battery on the motherboard? Replacing it would be one of my first steps. > it was like that once, but not quite like that these days I visited Bali in 1993 and 1995 and fell in love with the beauty and spirituality of the place. Went back in 2012 …

Member Avatar for JamesCherrill
0
563
Member Avatar for procreagency

Do provide evidence of having done some work yourself if posting questions from school or work assignment. [DaniWeb Community Rules](https://www.daniweb.com/welcome/rules)

Member Avatar for JamesCherrill
0
97
Member Avatar for Hamsterking

Pseudo code loop function (array): for each element in array if its the one you're looking for exit loop recursive function (array): if the first element is the one you're looking for return it return recursive function(array with the first element removed) ps you don't need to create a new …

Member Avatar for JamesCherrill
0
193
Member Avatar for ZheeYT

If this is your assignment then nobody here will help you cheat by giving you code. But if you are willing to learn and to make some effort then we will be very happy to help you. So... Try to do it yourself. If/when you get stuck come back here, …

Member Avatar for Reverend Jim
0
2K
Member Avatar for siddhesh123
Member Avatar for Mr.M

The php experts seem to be stil in bed, so I'll have a go... The & defines a reference. References in PHP are a means to access the same variable content by different names. Its like creating an alias for a file (or more like a Unix hardlink) http://php.net/manual/en/language.references.php $b …

Member Avatar for JamesCherrill
0
361
Member Avatar for ela_1

Just a reminder for everybody.... > Do provide evidence of having done some work yourself if posting questions from school or work assignments ([DaniWeb User Rules](https://www.daniweb.com/welcome/rules))

Member Avatar for JamesCherrill
-1
333
Member Avatar for Larry_13

Your end else comments show where you going wrong... they are all one line above the actual bracket that end the else

Member Avatar for Reverend Jim
0
381
Member Avatar for clairrayray

I'm not sure why this is a programming question - it's really a combination of aesthetics and ergonomics. But in terms of programming the important thing is not to hard-code any colours. Make them some kind of global shared resource (details depend on programming language) and set or load the …

Member Avatar for jmvazq
1
370
Member Avatar for lewashby

This request is bizarre. You want to type French characters, but you don't want a French keyboard? So you want o create your own custom keyboard that... what? has a US layout for alphabetics but puts accented characters?... where? I really don't understand why you can't simply install a standard …

Member Avatar for Gribouillis
0
901

The End.