452 Posted Topics

Member Avatar for jordan.nunnery.75

public class MyProgram{ //Enter your code or be more specific when asking a question! }

Member Avatar for samson.dadson.3_1
0
127
Member Avatar for happygeek
Member Avatar for Slavi

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()); } …

Member Avatar for Slavi
0
147
Member Avatar for mxwarning
Member Avatar for Slavi

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 …

Member Avatar for Slavi
0
193
Member Avatar for Slavi

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 …

Member Avatar for Slavi
0
190
Member Avatar for Tanushree_1

Means the symbol is not found, not decleared or doesn't exist in the language syntax

Member Avatar for Slavi
0
95
Member Avatar for divinity02

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 …

Member Avatar for Slavi
0
173
Member Avatar for m243mckee

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

Member Avatar for Slavi
0
46
Member Avatar for mxwarning

Isn't it being printed just as a static string value in the print method? perhaps if you show some code ..

Member Avatar for mxwarning
0
123
Member Avatar for chalobe.lefa
Member Avatar for mattster
Member Avatar for vivekH
Member Avatar for rob.sigmon.1

Are you getting any errors on the last code now? If so which if not, what questions do you have about it?

Member Avatar for Schol-R-LEA
1
560
Member Avatar for Slavi

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 …

Member Avatar for Slavi
0
165
Member Avatar for Slavi

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)

Member Avatar for happygeek
0
181
Member Avatar for meeno28_

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 …

Member Avatar for Slavi
0
143
Member Avatar for Slavi

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 …

Member Avatar for Slavi
0
204
Member Avatar for FazeLessWhite

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

Member Avatar for FazeLessWhite
0
224
Member Avatar for happygeek
Member Avatar for ShamirSuhaimi

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

Member Avatar for Slavi
0
143
Member Avatar for yeyo_1

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

Member Avatar for taichichuan
0
280
Member Avatar for Mourya1222
Member Avatar for ddanbe
Member Avatar for Necrozze

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/)

Member Avatar for Necrozze
0
815
Member Avatar for Slavi

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?

Member Avatar for Slavi
0
98
Member Avatar for happygeek

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 ;)

Member Avatar for DistantGalaxy
1
520
Member Avatar for Slavi

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 …

Member Avatar for Slavi
1
208
Member Avatar for RikTelner
Member Avatar for Slavi

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 …

Member Avatar for Slavi
0
279
Member Avatar for Slavi

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 …

Member Avatar for LaxLoafer
0
177
Member Avatar for Slavi

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 …

Member Avatar for oussama_1
0
114
Member Avatar for Kris_3

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 …

Member Avatar for Slavi
0
522
Member Avatar for Slavi

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 …

Member Avatar for Slavi
0
2K
Member Avatar for Ravi_15

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 …

Member Avatar for humorousone
0
274
Member Avatar for Slavi

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 …

Member Avatar for Slavi
0
159
Member Avatar for Slavi

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 …

Member Avatar for Slavi
0
161
Member Avatar for Slavi

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) …

Member Avatar for Slavi
0
175
Member Avatar for James_30
Member Avatar for happygeek
Member Avatar for Slavi

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 …

Member Avatar for mentigar
0
385
Member Avatar for MasterChat

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 …

Member Avatar for MasterChat
0
318
Member Avatar for RikTelner
Member Avatar for happygeek

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 …

Member Avatar for Slavi
2
573
Member Avatar for Varunkrishna
Member Avatar for ~s.o.s~
0
10K
Member Avatar for GingerDontCare

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

Member Avatar for Slavi
0
983
Member Avatar for DawnofanewEra

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

Member Avatar for ~s.o.s~
0
2K
Member Avatar for it@61@sec

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

Member Avatar for it@61@sec
0
136
Member Avatar for mamun.bl
Member Avatar for Siick7

You have already imported Scanner at the very beggining comment out/remove line 83

Member Avatar for Slavi
0
157

The End.