- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- Interests
- Coding, C#, Java, C, computers and games in general
- PC Specs
- I7-3550, 16Gb Corsair Vengence DDR3-Ram, 7950HD raedon GFX, Steelseries G7 keyboard, Roccat Kone[+]…
25 Posted Topics
Hey! So I am having trouble with this [problem](projecteuler.net/problem=18)! Basically you have to find the path that gives the largest sum down this tree: 75 95 64 17 47 82 18 35 87 10 20 04 82 47 65 19 01 23 75 03 34 88 02 77 73 07 … | |
Hey! Im doing a project, where i have to manage a bunch of different appliences. I´ve made a custom generic collection class that has a few different search methods. Now the collection class has to hold all of the different appliances (so they all inherits from the same superclass: Appliance). … | |
Hey! Im fairly horrible(and new) at networking :) But i have been trying to setup a Mumble server on my newly accuired Raspberry Pi (running debian wheezy). Now the server works internally. And have setup a virtul server path with my D-LINk router to my servers local ip. But nobody … | |
Hey! So i have started learning c, quite refreshing when i normally code in Java :) I have this task where i need to store three int values in an unsinged int via bitwise operators. Its for a RGB picture where the colour is limited to 256. I have done … | |
Hey :) First off this might actually be a network problem! But im also uncertain of the java code and how networking works in java. The program is basically just to transfer a file if that matters! So this is my code for setting up the connections: Server: //connection(s) private … | |
Re: At the university im at the first time we ever coded java was in [JEdit](http://www.jedit.org/) . Its simple and you don't have to fumble with compiling in command prompt (which honestly when writing really simple programs can be the hardest part, at least i had a lot of trouble with … | |
Hey! So i'd like to learn the JMF api. And to start i wanted to build an application that can capture frames/video from a webcam. Now, i started by trying to list all the devices: Vector info = CaptureDeviceManager.getDeviceList(null); if (info == null || info.size()==0) System.out.println("No Capture devices known to … | |
Re: As James said in your context it doesnt really make sense. However if you are printing the value you can use the DecimalFormat class, ie.: DecimalFormat df = new DecimalFormat ("0.00"); float someFloat; //some code System.out.println(df.format(someFloat)); Not sure if there is a better/easier way, but this is how i normally … | |
![]() | Re: Do something like: //... int lastNum = duplicate.remove(duplicate.size()-1); return lastNum + calculateSumArrayListHelper(duplicate); |
So i have a working network file transfer program now (if you want to see some of the code look at my other '[article](http://www.daniweb.com/software-development/java/threads/426357/networking-in-java-not-doing-it-right)'). But now that im trying larger files, im running into a problem where i run out of memory (which is understandable when the array is 1 … | |
Re: Not sure this is what you want. Your question isn't very well explained. public void actionPerformed(ActionEvent e) { if(e.getSource() == JTable()) { JButton.doClick(); } } | |
Re: JFrame.isActive() Test should be returned false if the frame has been disposed! | |
Re: We use [Java in Two Semesters](http://www.amazon.co.uk/Java-Two-Semesters-Quentin-Charatan/dp/0077122674/ref=sr_1_1?ie=UTF8&qid=1340640603&sr=8-1) at my university. Its really good, albeit abit slow but thats good for newcomers:) It covers alot of the basic conecpets of programming plus a good amount of the java framework! | |
Re: You an use the two methods James gave you to accomplish that: if(e.getSource() == aButton) { //get text already in your text field //add a to that //put text back in text field } | |
EDIT: Im an idiot. The hand-shake like mechanic i put in where the server waits for the client to respond was the reason it was so slow, removed it and it worked. I misunderstood/forgot how streams work.. Ok. So i just started learning how to use the network utility there … | |
Re: As far as i can tell this code just returns the key three times? : for(Map.Entry<String, Employee> theEntry : map.entrySet()) { System.out.println("Employee Name:\t" + theEntry.getKey()); System.out.println("Employee Id:\n" + theEntry.getKey()); System.out.println("E-mail:\n" + theEntry.getKey()); } If you want to get the information you need to call it through the Employee object ie. … | |
Is there anyway, through java, to tell whether a tv connected to your computer is turned on or off? Or if its not build into java is there any way to even do this in windows? Because nothing change in windows or my raedeon driver when i turn my tv … | |
![]() | Re: Without reading all of the code, you cant change a variable/object from another class when you declare it as 'private'. If you declare it as 'protected' you should be able. protected JRadioButton jrbError; ![]() |
Re: Not sure if this is what you want, but its a tutorial of how to get the memory used by an object: http://www.roseindia.net/javatutorials/determining_memory_usage_in_java.shtml | |
Re: Could you post the code where you are calling this method? its sounds to me like the problem would be there, since the highlightning is working, just not stopping. | |
Re: Im a first year univeristy programming(Computing) student. The core book in my java class is: *Quetin Charatan and Aaron Kans: Java in two semsters. Third edition* Its really quite good if you are new to object oriented programming aswell. If you have done c++, c# or the like before quessing … | |
![]() | Re: You should start your for loop counter at 0. Not only because your for loop doesnt quite work as it is now, it raises to a power one less than what the user asks for. But also because its good coding practice! |
Im creating a banking system for a university assignment. Basically I have been struggling with encrypting user data. Its a first year assignment (in a 3 year bachelor) please bear this in mind when commenting x))) [CODE] //The constructor sets the global veriable key to a user defined value. //The … | |
Oka. So i have this rather simple program, basically i want it to be able to count the number of hours it has been open. My problem is that i am trying to use [CODE]import java.util.date; Calendar calendar = Calendar.getInstance();[/CODE] And apperently this does not update after the program has … | |
Hey! I just startet fildeling around with c++ a week or so ago. I have some experience in Java and python. Anyways, i wanted to make this simple hangman game; [code] #include <cstdlib> #include <iostream> #include <string> #include <fstream> using namespace std; void exit(int exitcode); char hus[] = {'h', 'u', … |
The End.