458 Posted Topics
Re: You need to split the input in two parts - the first two digits and the last two. The first two digits become your our part and the last two digits become you minute part. Once you have done this, run your validations on both the hour parts for them … | |
Re: Yes I am sure many people around here know how to write those methods, but we won't just give them to you for free, at the most we can offer you a pseudocode for these, but then since these sorting techniques are quite popular you can find an algorithm for … | |
Re: Hi Puneet, I haven't gone through your ORM framework, I need sometime for that, but on first thoughts I would like to suggest you another very popular ORM framework - [URL="http://www.hibernate.org/344.html"]Hibernate[/URL] - which you might have heard of. This is a project similar to what you have started. Since you … | |
Re: You need to use a JTextArea for this, you can specify the no. of rows and columns for the JTextArea by using the methods [icode]setRows()[/icode] and [icode]setColumns()[/icode]. When you set the JTextArea's rows and columns to more than the width and height assigned for the JTextArea horizontal and vertical scroll … | |
Re: C'mon now stultuske don't be lazy, it doesn't mean that just because we are not paid for this help and we have our work to look after you cannot find time to help other people. I will give you your class too [code=java] public class AssignmentNotDoneByMe{ public static void main(String … | |
| |
Re: [QUOTE=Monalisaparker;784778]can you be more specific, about which language you are talking about as the word "language" is broad[/QUOTE] I guess she wants it to be broad. She doesn't want her question to be specific for any langauge. | |
Re: To detail on this, in Unix-based systems, all the open file handles are stored in an array internal to the system. The file descriptor so returned is the index of the array position where the file handle is stored. | |
Re: [icode]waitFor[/icode] returns an exitValue in int. If this value is zero it specifies normal termination. Any other value specifies an abnormal termination, so this means that the process is running to completion, but not with desired results. Since you are claiming to renam files over here, just whether you have … | |
Re: I haven't gone through the entire program of yours, no need to even, since there is much of repeatition. But what I have gathered from a quick look is that you need to avoid making all those classes. You are doing the same thing in all of them. Why not … | |
Re: When putting an item inside the queue why do you want to show the queue. Or is it some assignment requirement that on every addition of element to the queue you need to show the queue structure ? If yes, then write some method that traverses the entire queue and … | |
Re: Do you have something personal against the code tags that after our repeated attempts to get you start using them, you still don't. As far as the programs goes, my comments could be copy-pasted from those of javaAddict. | |
Re: [QUOTE=Coyboss;782169]I dont want to be rude either [B]but[/B] I OBVIOUSLY DON"T KNOW WHERE IT NEEDS TO GO!!!!! So can we CLUE me in as to where I need to put it? Or do I need to keep guessing? I have been working on it for over 2 hours and tried … | |
Re: I checked ActivePerl, it promises to make things easy for you, but should you allow them to ? Think about it, if you are going to put yourself a habit of being spoon fed, I believe you are not going to go too far. Rather install the perl interpreter on … | |
Re: Adding to what peter_budo has said, I would like to suggest you to refer the [URL="http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html"]Java Code Conventions[/URL] document. Any beginner needs this, in your case since I do not see any indentations in your code which can make the code unreadable, I site this to you. Also I see … | |
Re: Use [URL="http://www.daniweb.com/forums/misc.php?do=explaincode&TB_iframe=true&height=400&width=680"]code tags[/URL] for posting your code, it just make the code more readable. Some of the errors that I see here are : 1. You haven't declared what [icode]scan[/icode] is. I guess you are supposed to use [icode]input[/icode] here but you have used [icode]scan[/icode]. [code=java] public static double calcFV(double … | |
Re: [QUOTE=dalbirsingh;780476]Give me the complete code for this. [/QUOTE] Yeah and you give us a billiion dollars for that. Only the forum rules are stopping me from telling what reply you should be getting for that. Have you taken care to read the forum rules before making any such nonsense requests … | |
Re: [QUOTE=SamCris;777009]kung pwde k mgbisaya ok lng, pasabta lng ko sa T[] ug OldT[] ug nganong k2ng sa Fig 1.13 (page 35) sa JEDI course notes dili masabtan :([/QUOTE] Did you just swallow an ostrich size fly ? | |
Re: I remember you starting another [URL="http://www.daniweb.com/forums/thread167207.html"]thread[/URL] with the same topic, just a few days back. There too you were asking for help on such a broad topic that even someone who honestly wants to help you won't know where to start from. Is there any obstacle that stops you from … | |
Re: Since two of the forum's senior guys have already posted onto this (one a mod and the other a featured poster) there's no need for me to do this but since I feel that one point escaped both of theirs attention I would like to comment on that. Did I … | |
Re: When you say you have working knowledge of Java I assume you have written enough programs in the langauge. Since you say you are not able to make the next step, picture it this way, a project is nothing but an extension of programs, it is essentially a collection of … | |
Re: @neeraj Do you take some pains to read about the forum where you post or you just start shooting ? If you would have cared to look around the forum you would have found that there was a forum for JSP too. Also there is an announcement encouraging the use … | |
Re: I would like to site you the same documentation again. You can create a [icode]ByteBuffer[/icode] but there are other methods than the regular constructor to create them. Going through the docs once again, albeit more carefully would sort this out for you. | |
Re: I did not understand the point of your earlier post nor am I able to understand it now. Your earlier post was sort of making ground for future questions that you might have, sort of preparing us for the questions you might throw at us. But I suppose there was … | |
Re: Duplicates meaning, the entire name should be identical or just any of the first name, last name etc ? Check "select firstname, count(first name) from tablename having count(firstname) > 1" something like this. | |
Re: Knowing here the purpose for such a random number would be important before advising you of anything. Also Java has a UUID Class that generates Universally Unique Identifiers. This class has methods to generate four different types of UUIDs one of which is to generate a pseudo random number, go … | |
Re: Firstly you did not mention any topic apart from Java GUI, which is far too generic to be a topic at all, secondly if you are voluntarily competing in the camp don't ask us to submit code for you. Do it on your own and show it to us and … | |
Re: No I don't think so. Since your application connects the database server it would need the database server running, whenever it's invoked on the client machine. This won't be true in your case since you run the server inside your NetBeans IDE. | |
Re: [QUOTE=l_03;774868]hello...i am confused,,it is possible that a linkedstack will be full??i only implement a method that isEmpty(),,and it reads the method if the stack is empty..but if the stack is full, it do not even read the method i made....would someone help me?/,,,thank you ahead...[/QUOTE] If you know what a … | |
Re: While specifying the foreign key constraint you have specified "ON UPDATE NO ACTION" while this seems to mean that no action would be taken on update, it specifically means that you will not be allowed to update too, either remove the clause or if it is binding for you to … | |
Re: god almighty, has your keyboard lost all the letter inscribings on it or what ? Anyways, go look for some project ideas youself. | |
Re: Half of the world already knows it, so whats the point announcing it, especially here which is a forum to ask questions and not some web notice board. | |
Re: Would you mind putting your code directly here in code tags ? | |
Re: A DBMS in Java ? Bravo !!! [URL="http://www.daniweb.com/forums/thread99132.html"]This[/URL] thread will offer you a whole lot of information about starting java. But to write your own DBMS in a langauge I guess you will have to look far beyond a particular "link" or site. This will need in-depth knowledge and understanding … | |
Re: In Java there are [URL="http://java.sun.com/docs/books/tutorial/java/javaOO/classes.html"]Classes[/URL], [URL="http://java.sun.com/docs/books/tutorial/java/IandI/abstract.html"]Abstract Classes[/URL] and Interfaces. Classes and Abstract Classes can be [B]inherited[/B], but a Class [B]cannot[/B] inherit from more than one Class or Abstract class. Abstract Classes cannot be instantiated, though as mentioned above they can be subclassed. Interfaces on the other hand are [B]implemented[/B], a … | |
Re: No, you did not, from the code you have written you are just implementing a single stack. Also to confess I too have not understood what your assignment is : "to implement multiple stack with a single dimensional vector". Details would be required for further thought. BTW : Linked List … | |
Re: 1. I don't see anything wrong with the query code here. 2. If you want to send the data for just two variables mention just those variables in the insert into clause for e.g. if you want to insert just date and time write the query as follows : INSERT … | |
Re: Show us some effort from your side first, how would you go about implementing such a project we would like to know that first. Then you could maybe ask us specific questions than "Please send me some algorithm", and we would be glad to help you. | |
Re: This code works for MS-SQL, but you are using Oracle and since the SQL Syntax can be vendor specific you will have to check. [code=java] // Here this code shows two parameters being passed to the sp // Here con = connection,proc = CallableStatement proc = con.prepareCall("{call sp_SPNAME (?,?) }"); … | |
Re: If you have an array of [icode]Byte()[/icode] class, then the class itself has an [icode]intValue()[/icode] method that returns the value of this Byte as an int. Read the javadocs for the [URL="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Byte.html"]Byte[/URL] class for more details. | |
Re: I think, though I am not 100% sure, that the problem is rooted in the [icode]if (objects[min].compareTo(objects[scan]))[/icode] statement over here. [icode]compareTo()[/icode] returns either 1,0,-1 depending on whether the calling object is greater than, equal to or less than the object passed as a parameter. According to the above statement you … | |
Re: 1. Use code tags to post code. 2. Instead of asking of us whether your code is ok or not you can check it yourself, if it does what it is intended to do you know what it is, whether it doesn't you still know what it is. Why do … | |
Re: Yes you can accept a string as an input and then convert this string to a [icode]File[/icode] type. There is a contructor in the File that allows this. [code=java] public class DeleteFile{ public static void main(String [] args){ // Pass the first argument which is a filename to the constructor. … | |
Re: how about a project to convert not so good written language to a very good one (that corrects grammar as well and adds if there is none) ;-) | |
Re: you ask for challenging projects when you are not even ready to accept the challenge of brewing an idea in your head for the same. Tell me frankly, is it so difficult ? | |
Re: I agree with jasimp, but I guess if your requirement is just to monitor network traffic or protocol analysis, there is already a product that does that for you. [URL="http://www.wireshark.org/"]Wireshark[/URL] is a s/w that is used for network protocol analysis. Check if thats what you want. | |
Re: To launch a java application at startup in linux you can specify the command for starting the application in [icode]/etc/rc.local[/icode] file. If you do not have the [icode]/etc[/icode] or the [icode]rc.local[/icode] file already you can create one before and then paste your command into it. An intro to what is … | |
Re: BTW what is steganography ? It might help you detailing that. Also google for the algorithm, I am sure you would get enough information there. | |
Re: Before moving further I would like to clear certain details. Since the static field would be common across multiple instances of a class, what if two different instances were initialized through diffrent constructors, in that case your serialization/deserialization would always depend on the last instance created. Would this be proper … |
The End.