452 Posted Topics
Re: public class MyProgram{ //Enter your code or be more specific when asking a question! } | |
Re: Thanks 4 sharing | |
Hello everyone, I am getting NPE, and surprisingly I can't figure out why ... I am calling a method from a client using java rmi. The method on the server side is as follows : public List<String> getPrinters() throws RemoteException { List<String> listPrinters= new ArrayList<String>(); for(int i=0; i<printers.size();i++){ listPrinters.add(printers.get(i).getName()); } … | |
Re: Can you point out what is wrong in the output? | |
Hey everyone, I am facing an implementaton issue here ... hopefully someone can give me a hand .. So I am implementing a client-server communication, where the server has to act as a print server. In other words, the client simulates to be next to a printer and can send … | |
Hey guys, I can't understand why am I not getting anything from the server, it is supposed to return "Hello" to the client ... I have this code implemented for a game I made during the summer and it works perfectly(of course this is just part of the code), but … | |
Re: Means the symbol is not found, not decleared or doesn't exist in the language syntax | |
Re: I'd also include that for my own preferences I'd go for what @herices said but with more brackets for clear reading `else if((code != 1) && (code != 2) && (code != 3) && (code != 4))` Next thing, you should probably check whether the number is between 1-4 first … | |
Re: You have to burn it as an image not just a single copy paste, in other words using a dvd burning program, another solution is to make a bootable flash drive, using Universal USB installer is most likely the best solution to make linux on bootable flash | |
Re: Isn't it being printed just as a static string value in the print method? perhaps if you show some code .. | |
Re: Are you getting any errors on the last code now? If so which if not, what questions do you have about it? | |
Hey guys, i am facing a small problem here, perhaps you could give me any hints with it. In one of my courses (Program analysis) we are using a language called "The While language" , it is simplified and I think only for education purposes. I am asked to make … | |
Hey guys, just heads up to change your passwords!, here is the story on the hacker news [Link](http://thehackernews.com/2014/10/nearly-7-million-dropbox-account.html) | |
Re: Seems like an assignment, what have you done so far? Here's some tips While loop will keep the program running until user terminates it cin operator takes an input from the user, such as 500, I assume your input is in grams? multiple it with 1000 and the result will … | |
Hey guys, I am facing a problem with one of my homeworks, it states: The various analyses implemented in the program analysis module will make use of a number of general data structures and algorithms and in this exercise we shall focus on those. The parser provides a representation of … | |
Re: Havent done android inawhile but you created 2 buttons with 2 different id's , and if you don't link a handler to the first one, nothing will happen whenever it is clicked | |
Re: Exactly what Jim said, if you want to keep something private, don't put it on the net ;) | |
Re: As James said, you can set them in the default contructor on line 7, and just set your variable to some strings of your choice, so whenever you create a person he will be automatically assigned to those strings, which could represent names etc | |
Re: I think g++ (g++ filename)is inbuilt but for starters it might be a good idea to take a look in an IDE, for example Code Blocks it is out of charge and is one of the best C++ IDEs I've came across | |
Re: I think you have to loop through the list to print out each element instead of just a simple System.out.println(), try using iterator or for loop also works until next element is null (as its the last data in the list) Take a look at [Click Here](http://crunchify.com/how-to-iterate-through-linkedlist-instance-in-java/) | |
Hey guys .. I just got an invite to buy oneplus one, and it expires in 24 hours. I have samsung galaxy s3 currently, any suggestions should I go for it, whats its performance? | |
Re: No beard for me ;) I even shave my chest, cuz my biggest hobby is bodybuilding so I clear off all the hair to show dem gainz ;) | |
So, some time ago PPAPI plugins, were stopped to work on google's chrome n chromium for linux, which really sucked for me at least .. Just figured that google have something called pepperflashplayer and I followed this https://wiki.debian.org/PepperFlashPlayer/Installing to install it.It worked like a charm but the problem that I … | |
| |
Hey guys, another one that I got stuck on(Although I passed 4000 points, soon to be on the leader board!:D) ... so here is the idea I have an input array for example {1,2,3,4,5,6,7} and an int number for example 10; so what I have to do is return all … | |
I was just watching some of the educational videos from imperva on youtube, and one of them was session hijacking. Basically you can obtain a coockie, in some way such as cross-site scripting, and then use the coockie to access a web page where you will be logged in as … | |
Hey guys, I need to produce an output such as {{0,0,0,0,0}{0,0,0,0,0}{0,0,0,0,0}{0,0,0,0,0}{0,0,0,0,0}}; I have no input paramethers so I assume I need to have int[] array= {0,0,0,0,0} and then make 2d array of it? I tried int [][] arrayOfSets = new int[0][25]; int [] a = {0,0,0,0,0}; for(int i=0; i<1;i++){ for(int … | |
Re: Just to add up something, this is the case when you create a text file and you compile it using terminal. However, if you have an IDE project where you have the entire dependency tree with folders such as src and bin etc, when you compile a file which is … | |
Okay guys, I am having a tough time tryin to figure out this one and I hope some of you can lead me to a right direction .. My friend who has windows 7 as operating system, usually on boot up he has 3 options to choose inbetween and a … | |
Re: I've seen few "guides" of how to reset the pw due to a vulnerability in the system. There is a way to get cmd and basically remove/change the pw using it. I am not sure whether DaniWeb rules would allow me to link it but if you just google around … ![]() | |
Hey hey ..I've got stucked onto another one ... So, not sure how to explain this 1 but I can give an example ... When input = 1 - expected result is a string = "a b c d e f g h i j k l m n o … | |
Hey guys, I've got stucked on something here ... so to explain it here is an example. Let's say I have a string "aa a i". My idea is to get a result that is "aA A I". -> this is a challenge on Codehunt and I got stucked on … | |
Hey guys, I am making something that it takes a char, then it sums it with 5 and returns the new char according to the ASCII table, for example input is 'a' , then output will be 'f'. This code is doing it somewhat .. public static String Puzzle(String s) … | |
Re: Are you compiling from the src folder, or the class folder? | |
Re: Good articles get destroyed by weird spam, keep sharing @Geek thanks | |
I am about to buy a new phone and I am totally confused on what to base my decision whether to get SG5 or N5. I have SG3, had it for over 2 years (Since day of sale), and never had any troubles at all with it, been making my … | |
Re: Pretty much what @happygeek said,and watches like ... why ... I really thing that some absolutely unnecessary items are becoming part of our daily life and that would really affect the coming age of children, they' ll prolly end up being zombie-like connected to the net and games all the … | |
Re: VMware and have windows on virtual machine? | |
Re: I actually read an article about this yesterday and literally couldn't believe it, thanks for clearing. Also having Gmail account or any google account infact and not having 2step would be really self stupid, as they have their 2step not only by Google auth app, not only by sending an … | |
Re: in your addNumbers do you want to add? - sum = number1 + number2 , your sum is never set | |
Re: It would just return max - the greater of the two values and min - the smaller of them , such as public int findMin(int a, int b) if(a>b) return b; else return a; Likewise for max | |
Re: Could you show us your client code? Also is there any reason to use RMI? I've had big time troubles with it as well and I'd , much rather use sockets unless its a must | |
Re: Have you tried using a different browser, or try to select multiple characters at a different environment, such as text editor or something? Can't tell whether it is software or hardware problem w/o info :p | |
Re: Do you have an Activation(product) key? | |
Re: You have already imported Scanner at the very beggining comment out/remove line 83 |
The End.