4,084 Posted Topics
Re: [QUOTE=Chotaliya Divye;558771]My Name is Divyesh Chotaliya. can any one got idea or having code please send me mail. my mail id is [email]do.not.need@to.know[/email] [/QUOTE] well, here's a thought: read the forum rules and put some effort of your own in it. also, this is a public forum, with the intention … | |
Re: [QUOTE=sonyb;557626] while(!function1.equals(selection)) { JOptionPane.showInputDialog(null, selection + " is not the correct function.\n\nSorry please try again"); counter++; System.exit(0); }[/QUOTE] for starters, get rid of that System.exit(0); statement. haven't read the rest, so there might be some other errors in it. you might want to consider putting your code in code-tags next … | |
Re: [QUOTE=kim2_0016;557535]can you give ne some ideas on how to do this program output?[/QUOTE] first calculate the correct result, then use setText() on the JLabel to show your output in it. | |
Re: [QUOTE=bmbvm5;553562]Hello, do you knew java to help me.[/QUOTE] yes... Java is a brand of coffee. If you want help with your coding, start a new thread, provide us with the info: - what does it need to do - what have you allready done - where are you stuck and … | |
Re: this 'kind of' looks a lot like your other post asking about information on how to retreive a user login from the system. you are creating several threads asking for help, yet I still haven't seen much effort from your side. how about posting some code, or enlighten us about … | |
Re: [QUOTE=piers;541651]int num = Integer.parseInt(parseString)[/QUOTE] which would be correct, if the String to parse was, for instance, String toParse = "97"; int num = Integer.parseInt(toParse); but with an input-String like "asu", like in the example he gives us, this will lead to the necessary exceptions, since "asu" is not recognized as … | |
Re: a row and a column of what? a table on a jsp page? in a jTable? what do you want and what have you tried so far? it's no use for us to try sollutions that have allready proven to you not to work. | |
Re: but if it's "ee" you want as result: int pos = firstString.indexOf("ee"); System.out.println(firstString.substring(pos, pos+2)); | |
Re: yup... but only after a lot of coffee. if you'd like a more java oriƫnted answer, you might want to share with us what you're trying to do, how you've implemented the sleep function and, very important, what kind of problems you've encountered using this function | |
Re: [QUOTE=HeroOfTime;545549] Am I just looking in the wrong places in the java libraries I've used[/QUOTE] hard to say, since you do not say anything about where you've been looking or what java lib's you 've used. I take it there are some who can help you with this, but giving … | |
Re: In my (humble) opinion, you might want to improve your english before trying to write tutorials in them, since it will be harder for newbies to understand texts that are made in other than their maternal languages, certainly if the text contains errors. also, it might be a good idea … | |
Re: you might want to make a bit more clear what you mean by: "filter that String" would you like to get the same String without spaces, without vowels, would you like to split it into seperate String Objects? | |
Re: [QUOTE=chaitramutalik;545641]how do i be an expert in java.[/QUOTE] by making sure you control the Java language a lot better than english... a lot it's just like with everything else: practise makes perfect. having someone patting you on the back won't do the trick. | |
Re: [QUOTE=sunne;475457] I need to find something similar on windows, as the code must run on both on windows and linux. [/QUOTE] in that case I take it you are happy to have learned that Java code does not depend on the platform it is run on? the same code will … | |
Re: or add it all to a single String object. String number = ""; and every time you have found your new number: number += " " + numberYouHaveJustFound; | |
Re: you might want to show us some code, if you would like us to figure out what's wrong with it and if you do.. please don't forget to pot code brackets ['Code=JAVA] ['/Code] without the ' around your code | |
Re: how about the 'Create random J2EE projects without bothering others' (especially twice) Even though we are not here to provide you with ideas, this forum has been visited many times by people asking the same as you. some of them even got (what they might consider to be) decent answers. … | |
Re: [QUOTE=sky100;544213]does anybody have a simple program for player play with comp. and use import Keyboard and Random only?[/QUOTE] the answer to this is propably 'yes', but who that anybody is... I have no clue. figure out what you want out of your program, figure out the logics behind it, start … | |
Re: choose another major, if you can't figure out the logic behind it, while it represents 15% of the points for that module, well.... you're quite <insert naughty word here> | |
Re: agree with JavaAddict.. especially substring is worth taking a look at, it'll solve your entire 'problem' in two lines of code. String name = "Hello World"; String firstName = <insert one instruction here>; String lastName = <insert one instruction here>; | |
Re: add the username as an attribute to the request (or to the session) after you've pressed the button on the first page, and retreive it in the next .jsp file something like : request.setAttribute("name",form.name); Hello, <%request.getAttribute("name");%> | |
Re: first of all, you must understand that the String class is not meant to compute things with. If you really want to compare dates, you might want to check out the classes 'Date', or, propably even better: 'GregorianCalendar'. By using those, it should be no real problem determining the difference … | |
Re: [CODE] public class AskedExample{ public static void main(String args[]){ System.out.println("enter your code here"); } } [/CODE] is the same as: [|CODE] public class AskedExample{ public static void main(String args[]){ System.out.println("enter your code here"); } } [|/CODE] without the '|'s if you want us to check out your code, we would … | |
Re: you just store the first element of the array in an int, double, or whatever you want to use, compare it to all the other elements and if you find one that is bigger in value, you store that one in that variable. in you jsp file (at least, that's … | |
Re: no need to answer what's allready been answered [URL="http://www.daniweb.com/forums/thread109646.html"]your other topic[/URL] | |
Re: well.... I'm pretty sure you're not the only person to having received this task, maybe your fellow students could have given you some tips. here's one from my part: stop waiting for the last day to make your assignments, especially those about a subject you're not very good at. the … | |
Re: don't go to the see for a bath, if you have a perfect shower at home :) you are making it way to hard on yourself. all you need to use is the system properties, which you can find by (either) Properties props = System.getProperties(); or, for your problem: String … | |
Re: maybe your application is not expecting to find what you want it to find :) mistakes are common you know, is pretty hard though, to try and figure out what the problem is, without having a look at the code that produces the actual Exception | |
Re: don't really see the problem in there, but didn't look that thoroughly either. you might try to format your code a bit, using the code tags. I'm sure a lot more of developers present will be pursuaded to read your code that way. | |
Re: [QUOTE=neelunova;538432]I am using itext to create a pdf file for slovakia in java ,and after the pdf is created some characters are not displayed properly.I am using cp 1250 as charecter set and ARIALUNI.TTF file for font.How do i resolve the problem?[/QUOTE] well... I guess you'll have a bigger chance … | |
Re: jup, nothing wrong with the code, and it's doing all you've told it to do. | |
Re: I take it he handed you just the same sollution as the answers as JavaAddict and Ezzaral? | |
Re: agree with JavaAddict. ID is mostly the name given to the unique key. you can not insert something with a key that allready exists. You also don't get to say 'where' the data is being putted, it is just added to the database, so a where clausule is a very … | |
Re: [QUOTE=sarehu;534797]The first step is to learn C. What are your problems in regard to that?[/QUOTE] first step might be to ask C-related questions on the C forum :) I have no doubt that many of the developers on the java forum are willing to help, but do bear in mind, … | |
Re: how can you be graduating if you can't decide on that? you're not an it student are you?? | |
Re: well.... I'm not enterely sure what you want, but in my opinion, you're making it way too hard. I've written a piece of code (based on yours) that does what I think you're trying to accomplish :). You said that the output wasn't right... actually, it was. You just weren't … | |
Re: never really thought of that ... what you could do is create a log file with all the data about the dir you'd like to check, and have a thread continously compare the current state with the state in the log file, but I have no doubt there are for … | |
Re: [QUOTE=sridharp_in;533894]I need code for autosuggest textbox in html using java connecting database. plz its very urgent. Thanking u in advance. Sridhar.[/QUOTE] whenever you have a problem like this, there's this nasty little tool that can almost certainly solve the problem. it's called '[URL="http://www.google.com"]Google[/URL]' | |
Re: there are some errors in your code I've changed a bit in it, so it'll run [CODE] public class SumIntegers { // private variables to be used by this class private int n; // number of integers in the array private int array[]; // the array to hold the integers … | |
Re: [QUOTE=kabo;533989]can sumbody help in solving the problem below:[/QUOTE] the answer is: yes if you would have asked: will someone help... nope. either tell your teacher that you need some help, study a little more yourself, or be prepared to fail your class. even if we were to write the code … | |
Re: [QUOTE=PL.P27;532641] [CODE]private void reversePalindrome() { String palindrome=""; char[] array=palindrome.toCharArray(); char[] carol=new char[palindrome.length()]; for(int i=array.length-1, j=0; i>=0; i--, j++) { carol[j]=array[i]; } System.out.println(carol); }[/CODE] [/QUOTE] you almost have everything you need. just use this array, and check whether or not array[i] and array[palindrome.length() - i] are the same, while i <= … | |
Re: [QUOTE=dharajsmith;529332] { {public class DVD(); } [/QUOTE] no doubt these two lines will make your compiler complain instead of compile through your entire code, you've placed brackets that seem to have appeared out of thin air, like the one above. also, the class DVD you're trying to create should better … | |
Re: had Java as well, but don't think about limiting yourself to Java ... next to Java, I have also had Cobol (which they (finally) stopped teaching this year), assembler, C++, perl, and some other languages. even if they do not show up while you're still attending college, you may be … | |
Re: if it is so important to you, I would have thought you to have checked with Google or with [url]http://java.sun.com[/url] as far as I remember, wave files are supported by java on its own, if you would like to play mp3 files, you'll need some extra's, for instance the jmf … | |
Re: try StringBuffer() easier, faster and easier to read than a Regex solution [CODE] String one = "Case number 123-456-789"; String two = one.substring(one.indexOf("r") + 2, one.length()); [/CODE] | |
Re: keep in mind, that you're using a command line parameter to get the volume of the array... that may not be the easiest way to work with, since you have to know in front how many rows there are in your input file. | |
Re: since you do not need it before tomorrow, it's quite an easy task. couldn't take more than 1 hour from someone who has only been teached java for a month (thinking about not the brightest student, and sure am stretching the time) don't be afraid to start coding, and to … | |
Re: [QUOTE=Jananee;488962]So kindly hold your tongue...[/QUOTE] he did give an honest answer to your question ... how can we give you an answer if we have to 'hold our tongues'? you said you started this topic because you know what to do. well, if you DID know what to do, there … | |
Re: and your question is? this forum is to be used as a 'learning platform' or to share your knowledge, not as a service desk filled with people who are eager to make your homework for you | |
Re: well... since you've said that you could figure it all out on yourself, I take it you've allready figured out that Java and JavaScript are not the same programming language? |
The End.