- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 12
- Posts with Upvotes
- 9
- Upvoting Members
- 11
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
59 Posted Topics
Re: When you want to read from or write to a file in Java you have to use different streams depending on what kind of file it is. You also have to take care of exceptions that can be thrown. I hope this link will help you: [url]http://www.underground-systems.org/forums/showthread.php?5157-Small-and-random-pieces-of-basic-Java[/url] I want you … | |
Re: Hi People say that Linux Mint is a good choice if you are not used to run Linux. I have Mint Elyssa and really like it. Very easy to run when you are used to Windows. They have recently released Mint 7 Gloria. Other people say that Feodora is good … ![]() | |
Re: Take a look here: [url]https://help.ubuntu.com/community/Video#Graphics%20Cards[/url] and here: [url]https://wiki.ubuntu.com/HardwareSupportComponentsVideoCardsAti[/url] the indication is that it should work. You can probably reach the terminal by pressing Ctrl+Alt+T. If I where you I would try to update and upgrade the system. I do not know if you are noob or leet so I will … | |
Re: If you are new to Java I can understand your confusion. It really took me a while to get some grip of different protection levels. It is not anyone elses job to do your homework, but I will give you some links and explanation to start with and hopefully you … | |
I just bought and read Jim Waldo's "Java The Good Parts". (ISBN 978-0-596-80373-5) It is a very interesting book that gives you insight in what happens under the surface. This is not a book about learning how to program in Java. It is rather a book for those who have … | |
I can not see any right for any government to censur or cut off people from Internet, but it happens all the time. Are you sure that it can never happen in your country? I do not have any political opinion about Egypt, but I support the people of Egypt … | |
Re: @Johnclave111 I am not sure if it is considered polite in this community to hijack other peoples thread ;) but I will answer you anyway. A good starter to the world of Linux is, in my humble opinion, to install Linux Mint on an old computer or dualboot it if … | |
Re: Larger programs can be built in many different ways using different designpatterns. We can take an application used in a customer service as an example. To store all information about customers, items for sale and items that customers have bought, there are a database to hold the information. This database … | |
Re: [QUOTE=vgi;1019459]How do you write the code that allows you to go back to the menu after choosing an option?[/QUOTE] Hi You can make it simple an add a new method like in this example below that is based on the class above. I have chanced the name of the class … | |
No one is ever alone... [url]http://www.thetrevorproject.org[/url] This thread is not meant as a start of a discussion, this link is meant as a helping hand for those out here that do not know where to turn for help. For those of you who do not know what I am talking … | |
Re: You can also do it another way, if you want to :) First you make a String variable that holds the value of the double variable you are working with. You do this by using the method Double.toString() and the parameter you put in can either be the value directly, … | |
Re: Since it is the first chapter it makes sense if you should practice on concatenate strings and the difference between print and println. | |
[url]http://www.dailymail.co.uk/sciencetech/article-1305191/Facial-recognition-software-allow-ability-identify-people-photographs-internet.html[/url] | |
Re: There is GStreamer but I don't think it has bindings directly for Java. I think it is supposed to be used with C++ but I can be wrong so maybe it is worth looking at it. | |
Re: If you want to call your second constructor in the Address class you put in the names of the city and the state like in this example: bankAddress = new Address(Vancouver, Canada); | |
Re: Hi If you have not been there already this link: [url]http://www.w3schools.com/js/default.asp[/url] could be useful for you. Here you will find basic JavaScript syntax and examples. Good luck :) | |
Re: [QUOTE=jman212;1210922]I have this 2d array that sorts the rows but i can't sort the column.. i can't figure it out for the life of me. PLEASE HELP }[/QUOTE] Hi :) Since you have done all the hard work already and I have used your code as a base it is … | |
Re: Hi :) Your code has no compiling errors. The question is if it does what you want it to do? First you fill the par array with random numbers between 1 and 2. Then you fill the strokes array with random numbers between 1 and 5. After that you ask … | |
Re: I can not see that you ask the program to write to a file. Try: [CODE]pw.write(theFile);[/CODE] | |
Re: Alternativs: 3) [B]uname -n[/B] 4) [B]uname -s[/B] [B]grep[/B] is a command that returns a string with the desired text. In my case the command[B] ifconfig | grep "inet addr" [/B] gives me the same result as [B]ifconfig | grep "inet"[/B] but [B] ifconfig | grep "addr" [/B]gives an other result. … | |
Re: What languages depends on where on this planet you live. Look in the newspaper and see what the bigger IT company's are looking for. Look into the biggest technical university in your country and see what language they are teaching. This will give you a hint of what is in … | |
Re: An array of chars is not a string. Here you can read more about arrays: [url]http://java.sun.com/docs/books/jls/second_edition/html/arrays.doc.html[/url] Good luck :) | |
Re: [QUOTE=eshirley;1167250]I need to write a program that will output a list of all even numbers between 1-100. It needs to use a while loop then use a for loop. Any one got any help on how to do that?[/QUOTE] If it is a task where you must have both kinds … | |
Re: [QUOTE=SQ89;1019756]I have two files of huge data contains string and integers and i want to read from it and use it to count characters of the string for example name ending with letter "A" containing "oo" or having letter "A" as seconf letter. i need some methods from the String … | |
Re: Hi This is not my table :) but I was just wondering if you already has been on this site: [url]http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html[/url] if not I believe there could be some useful information for you. This thread: [url]http://forums.devx.com/showthread.php?t=147403[/url] might possibly also be useful for you to reed. | |
Re: Hi If you use a SringTokenizer whit whitespace as tokenizer the input string will be cut after each whitespace and you can more easily capitalize the first letter in every name if that is what you want. If you want to capitalize every letter in the name you have to … | |
I heard on the radio today that the trial in the Court of appeal (The second highest judicial instance in Sweden.) against Pirate Bay will be postponed until sometimes next year. This is because two persons in the court has been reported as challengeable by the lawyer of the prosecuted, … | |
I have honestly "stolen" this link from an other board ;) and before you watch this I would like to say that I do run both windows and linux, but I think this one is really funny :D [url]http://fun.drno.de/flash/howto_turn_windows_into_linux.swf[/url] | |
Re: When you want to find shortest path between all pairs of corners you can use matrix multiplication where the result is a matrix[B] D[/B] = [B]d[/B]ij where [B]d[/B]ij is the shortest path from corner [B]v[/B]i to corner [B]v[/B]j. | |
Re: Hi :) Maybe this can be of some use to you: [url]http://www.onesmartclick.com/programming/java.html[/url] On this site there is a pdf file "Java to C++ Transition Tutorial" I know that you are going the other way but when I looked (very briefly) it compared a lot of code snippets in both language, … | |
Re: Tested on Emacs the output is: [COLOR="Red"]java.awt.Rectangle[x=0,y=0,width=100,height=50] java.awt.Rectangle[x=-10,y=-20,width=120,height=90][/COLOR] The same output you have. What are you expecting to get? | |
Re: Hi You have not posted any code so this help will be very universal. For a classic menu you need a JMenuBar that you add to your container or JFrame whit the method setJMenuBar(); To the JMenuBar you then add a JMenu and to the JMenu you add three JMenuItem … | |
Re: Hi GridBagConstraints.NONE means that the item (text) can not grow. Change .NONE to .BOTH and see what happens :D Good luck :) | |
Re: Hi [CODE] while (myPhrase != null) { myArrayList.add(newPhrase); /****ERROR here*/ }[/CODE] You are adding your new phrase to your class myArrayList, not your array[] and I suppose that you want your array[] to store your phrases. I do not know how your file handler is build but if it takes … | |
[B] Online Security Conference[/B] Hi everyone :) If you have missed it I would like to share this information about a free open online security conference in November. 1. When and Where will SecurityTubeCon be held? Venue: Cyberspace Dates: 6th, 7th and 8th November, 2009 2. How will it all … | |
Re: [QUOTE=and12;966497] [QUOTE=javaAddict;966439]The only bug I see is you accusing a programming language which has been around for decades, used by thousands, for your incompetence. Just because you can't get it to work doesn't mean it has a bug, it means you don't know what you are doing. It is OK … | |
Re: Hi The focus is probably lost because there is a new event that gets focus and you have not programmed it clear enough to keep focus on the first event until that is finished. The easiest way is to "force" the player by disable every other possibility except the one … | |
Re: Hi Do it have to be done whit Scanner? If not, use SavitchIn instead it will take care of things like wrong input for you as in the example below. (Google for the code, compile it and put it in the same folder/map as your own class.) [B]Example output #1:[/B] … | |
Re: Hi Here is a place to read more about how an applet can read files on the local file system whit a link to a more thorough explanation of the applet security model [url]http://faq.javaranch.com/java/HowCanAnAppletReadFilesOnTheLocalFileSystem[/url] But be careful. [U]James advise to load files from server is the best advice. [/U] Good … | |
Re: Hi Just want to add some things to think about. If any items like labels or buttons are going to be added to your two panels (those you want to add to the JFrame) do that first. Decide how you want to add the two panels by setting preferred layout … | |
Re: wrong post please remove this can not find out how to do it myself | |
Re: Hi Begin whit this site: [url]http://java.sun.com/javase/6/docs/api/[/url] and read about: Class Object Interface Cloneable Class Boolean You will find them in java.lang. Then Google for examples of these and begin to try from there. You can also Google to see if there are information on similar projects. Write your classes on … | |
Re: >...and why does it work if i declare a local variable and assign it the same value as before ?? Hi When you assign a local variable the value of the object and ask for a comparison to 0 whit the operator **==** the two values are compared. When you … | |
Re: [QUOTE]Why does the thread 3 execute before thread 2 though iam invoking it before thread 3? [/QUOTE] Hi There are two kinds of memory used in Java. Stack memory and heap memory. Stack memory stores primitive types and the addresses of objects. The object values are stored in heap memory … | |
Re: Hi Do not think that I do not agree whit VernonDozier, but I will give you some bone to chew on. [U]You have to make a strategy of how to solve the problem.[/U] 1) Decide the name of your program/class and make the shell of it whit the main method. … | |
Re: Hi You have not added the buttons to the pane that is the reason why you can not see them. This line has no [B][COLOR="Red"] ; [/COLOR][/B] and that will give you an error when compiling. [CODE=JAVA]AverageScore = (quizOne+quizTwo+quizThree+quizFour)/4[/CODE] If you want to split your window area in to two … | |
Re: [QUOTE=robben;935360]I've developed function which allows to skip to a desired line number within a text file (see function). However, what I would like to do is develop a function which takes me to the beginning of the file (i.e. line 0) after calling the navigateForwardToLine function. However, I can't seem … | |
Re: Hi =) Check this site and see if you have it all installed properly: [url]https://help.ubuntu.com/community/Netbeans[/url] | |
Re: Hi I am not sure that I understand your problem. Do you want the information to be showed in a text area in your GUI when someone select the proper menu? Or how do you mean? Please explain a little bit more =) | |
Re: i am sorry I do not have the time to go true all your code but I think you should look at the part when you close and returns to main window. My guess is that you have not made any method to clear out the solved maze so it … |
The End.