1,522 Posted Topics
Re: why1991, the output you are seeing is the default toString() method of class Array being called. When using System.out.println() if you put an object in the parameter it will do whatever that object's toString() method tells it to. Unfortunately for you, that has nothing to do with the data in … | |
Re: [QUOTE=av_javabeg;988046]could somebody help me creating a program through which i can control utorrent via bluetooth.. as in startin pausing or updating trackers and stuff.. could u please create 1 and explain me? plz[/QUOTE] No. Put some effort into the project yourself. We can help you with [I]your[/I] program if you … | |
Re: [QUOTE=endisbegun;987916]oh and before i look too dumb haha i had included the 5 dollar charge in the base costs -_-[/QUOTE] Don't worry about looking dumb when learning a language. Worry about getting the basics, because they're essential down the road. | |
Re: Absolutely hilarious, and partially true. Not all men are that stupid. | |
This one works pretty fast, even for large numbers. Like it says, aproxomite end number, and that is because it will generally go one fibonacci number above what you specify. | |
All this snippet does is asks you for some information and then uses it and some math to guess your age. Pretty simple but I have to start somewhere. | |
Re: [QUOTE=deepak1234u;608482]hi.... i make some pages but i don't know the flow of the project... like i make database, login page, registeration page etc...[/QUOTE] Did you read what he said? Create YOUR OWN thread, read the rules and announcements at the top of the page. | |
Re: Obviously, jwenting and joshSCH, you have not met the Democrats I have. Most of them, including me, want all the Illegals out of this country. They are breaking a law and need to be deported immediately. I though Stephen Colbert summed it up beautifully on his show, his "congressional bill" … | |
Re: Am i one of the only people who's doctor tells him to eat more? I think he is crazy because I think i am the perfect weight. Maybe my doctor wants me to become obese so that he can make more money off of me. | |
Re: It doesn't matter what kind of work it is we do not just do your work for you. Secondly he is going to let you know becasue it is a rule and he is moderator. You are also a new member and might know that rule so he is informing … | |
Re: [QUOTE=steven woodman;613028] How about anti-matter, are you familiar with this as well. [/QUOTE] We had a thread about dark matter at one point; I think anti-matter was mentioned in it too. I think this is where anti-matter was first mentioned. [URL="http://www.daniweb.com/forums/thread79437-19.html"]Dark Matter [/URL]. | |
Re: When I click upload the upload manager just becomes a blank white screen. | |
Re: [QUOTE=spring3007;819264]So how did TooStep get an email address that I only typed once in my life, when I signed up for daniweb?[/QUOTE] Internet magic ;) | |
Re: [QUOTE=serkan sendur;850413]you know everthing about this website, dont you :)[/QUOTE] I wonder why ;) | |
Re: [QUOTE=GrimJack;817610]Have you noticed the evolution of the Simpson family -- now that they have been around for 30 years, they have started to insert lots of stories that explain what happened between marriage and kids.[/QUOTE] Wrong. They were doing that in the early seasons, at least before season seven, possibly … | |
Re: [QUOTE=loren_28;740056]kindly please help to solve my problem??? create a program that the user allow to input a 5 integers, that looking the lowest value?[/QUOTE] Create your own thread and show effort. No one is going to do your work for you. | |
Re: [QUOTE=jbennet;829963]Lol you cant watch it in the UK but i got the best error message ever "Please dont send any redcoats in retaliation"[/QUOTE] That's hilarious! :D | |
Re: Auditory : 60% Visual : 40% Left : 63% Right : 36% Jasimp, you are mildly left-hemisphere dominant while showing a slight preference for auditory processing. This overall combination seems to indicate a well-working blend of logic and judgment and organization, with sufficient intuition, perception and creativity to balance that … | |
Re: Is this really the right forum for this question? Just Google Objective C tutorials and see if they follow the same path Java tutorials take. This is the Java forum, help with Java, not Objective C. | |
Re: The problem I see is when someone (most likely a new member) posts to an old thread, asking for help, no one will see it (always imagine the worst case scenario, in this case it is every regular member has "Sage" mode turned on) and they will never receive an … | |
| |
Re: In addition to what James has said; if you want to be able handle more than one client you will need to create a thread for each client that connects. | |
Re: [QUOTE=shevy24;827795]i'm new to this forum, i think u guys will tell me more about some things i don't know...cheers[/QUOTE] Welcome! I hope you learn lots of new things. | |
Re: When I made a chat application I had the same problem. If you had googled a little harder you could have found this solution. [CODE=java]//incoming is the JTextField that displays the conversation //doc is a previously initialized Document object. doc = incoming.getDocument(); incoming.setCaretPosition(doc.getLength()-1);[/CODE] | |
Re: I'm confused what you mean by array keys. You also say you want to print specific elements in an ArrayList, then change and say Array. In any case, with the code you have provided, just change i++ to i+=2 That will print out every 2nd element. | |
Re: What error message are you getting? After a quick glance through I think one of the more beneficial things you could do is separate your classes into separate files. You also appear to switch between myItem and myItemname when calling methods on your Item object. | |
Re: I'm not sure if there is a way to restrict JTextBox to only numeric values. What I would do is have the user input the data, then parse what every they input as a double. When you do that the decimal will be considered part of the number. When you … | |
Re: [QUOTE=charlie81;828470]It says that class wk2 is never used and private static final char Y = 0 is never read locally and public void main(String[] args) { is never used locally[/QUOTE] That is because you are using the Eclipse IDE (most likely). Those are not compile errors or exceptions. They are … | |
Re: [QUOTE=Narue;827750]Do you want a cookie or something? [/QUOTE] Sure. I love cookies :) @Serkan Just give up the argument. Cheating is bad. It is as simple as that. Look at the definition of cheat, nothing good is said about it. You should have let the cheating thing die, now it's … | |
Re: The String class has a replaceFirst() method, look into it. | |
Re: @darkagn Student does have all those methods because it extends JFrame. @ComputerGirl Are you sure you ran it? When I run it I see the window but other than that it doesn't do anything yet. | |
Re: You created the method[CODE] calcAverageprice(ArrayList monthylPrice)[/CODE] Then you call the method in your tester class without passing the ArrayList parameter[CODE] calcAveragePrive()[/CODE]Also, as a side note, in your tester class you forgot the 'i' in import java.util.ArrayList; | |
Re: [QUOTE=T'Scoopz;827166] I didn't want to post my full code because it's too long and confusing to explain so I made a pseudo-version of it. [/QUOTE] Writing code that only you can read is a bad habit to get into. However, you made the right decision to not post it because … | |
Re: [QUOTE=bahr_alhalak;824554]what u mean ???[/QUOTE] He means do it yourself. Once you start writing and come across a concept you don't understand, ask for a little help (in the correct forum.) | |
Re: [QUOTE=Rashakil Fol;825679]Your beautiful hands turn me on... I'm going to make it so dry for you.[/QUOTE] I think your attempt of "[making] [his] existence on this forum a miserable one." isn't working. He seems to be posting more often. [URL="http://www.daniweb.com/forums/post818433-15.html"]http://www.daniweb.com/forums/post818433-15.html[/URL] | |
Re: [CODE=java] public Triangle(double s1, double s2, double s3) { this.side1=s1; this.side2=s2; this.side3=s3; } public Isosceles( double EQside, double otherside) { super(EQside, otherside); //calls triangle constructor } public Equilateral(double side) { super(side); //calls isosceles constructor. }/[/CODE] Look at all your constructors. You have one triangle constructor, and it takes three parameters. … | |
Re: To print the IP address of a client use [CODE=java]System.out.println(clientSocket.getInetAddress().toString());[/CODE] It will print the Ip address in this format [ICODE]/XXX.XXX.X.XX[/ICODE] >>How can i interpret this? It depends on what you want to do with the IP address or hostname. | |
Re: [QUOTE=VernonDozier;826518]I finally got around to linking a website to my posts, but it's not showing up. I typed in the website URL in the "Home Page URL" box in my Control Panel, but I'm not seeing it on my posts. Did I do something wrong?[/QUOTE] I didn't know it was … | |
Re: [CODE]boolean display = A.B(inputInfo);[/CODE] The return statement you used is legal. You can return false, true, or a boolean variable when using a boolean method. When you call A.B() that line of code becomes (basically anyways) the data type you are returning. That is why if you have a method … | |
Re: [QUOTE=saraalaee;825556]hello!! is there any body to answer my question : is "General List" a data structure(like ArrayList for example) in java language??if it is, plz tell me what it exactly is??I have searched but i didnt find anything about it!![/QUOTE] Don't use extra punctuation(such as !!!! or ???) next time. … | |
Re: [QUOTE=blackcloud72;824417]Please help I am stuck. I am trying to retrieved text from a file named "text.txt" and reversing the contents to another file named "output".[/QUOTE] Your code doesn't even attempt to write to a file. It only reads. Try to write to the file and if you're stuck, show us … | |
Re: [QUOTE=serkan sendur;825134]keeping a diary is a good thing, keeping it away from other people is hard..[/QUOTE] It's especially hard when you tell the world what is inside ;) | |
Re: When I programmed Blackjack I used an ArrayList to hold all my cards. To shuffle I simply had a for loop run about 1000 times, randomly picking a number 0-51, removing the object at that spot while at the same time adding it to the end. Just another idea for … | |
| |
Re: [QUOTE=Narue;797558]Hasn't The Dude already been featured as a member of the month?[/QUOTE] At first I thought so too; but I think it's Nichito we're thinking of. | |
Re: [QUOTE=crunchie;741318]I like the look, but where has the Techies Lounge gone? I probably cannot see it for looking :)[/QUOTE] All the tech lounges are in one large lounge now, in the community center, under IT Professional's Lounge. Lookin good Dani. I like it quite a bit. |
The End.