7,116 Posted Topics
Re: 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 | |
Re: Why does this topic have a Java tag? | |
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? | |
Re: Sandeep: Nice try, but SIX YEARS too late. | |
Re: 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 … | |
Re: 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. | |
Re: 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 = … | |
Re: 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 | |
Re: In a java string literal the backslash is an escape char, so to enter an actual backslash you need to code two backslashes | |
Re: 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 … | |
Re: > 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 … | |
Re: 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 … | |
Re: 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 | |
Re: Why not ask the author of that code? - the contact info is on the page you linked | |
Re: Are you missing a ] in the converted version, or is that deliberate? | |
Re: [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 … | |
Re: > 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. … | |
Re: 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? | |
![]() | Re: 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. |
Re: 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! | |
Re: 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 … | |
Re: > What method/algorithm do I need to use? or I know the logic Which? | |
Re: > Here is the code i have Joking aside - we can't see any code, so cannot comment on it! | |
Re: 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. | |
Re: > 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 … | |
![]() | Re: 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. |
Re: Don't you think that the point of your project is to do it yourself? Nobody here will help you cheat. | |
Re: > 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 … | |
Re: 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 … | |
Re: Surely if you purchased this then you should go back to the vendor and insist they fix it or refund your money. | |
Re: 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. | |
Re: > 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 … | |
Re: 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 … | |
Re: 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! | |
Re: 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. | |
Re: 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. … | |
Re: > 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) | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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) | |
Re: 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 … | |
Re: 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, … | |
Re: You ask for Java and tag with C# Which is it? | |
Re: 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 … | |
Re: 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)) | |
Re: Your end else comments show where you going wrong... they are all one line above the actual bracket that end the else | |
Re: 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 … | |
Re: 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 … |
The End.