452 Posted Topics

Member Avatar for Florin_1

`cout << " \n";` doesn't include it because it's printing only an empty line on that statement?

Member Avatar for Florin_1
0
330
Member Avatar for Amit_25
Member Avatar for erictheonly1

I am confused, do you have 2 variables called sum? One decleared globally and one that is a parameter of a method? Maybe show the entire code or give more explanation

Member Avatar for JamesCherrill
0
187
Member Avatar for GoneGirl

He is trying to say that your loop may not execute even once, in such case your print out will be printing out 0/0. Maybe print just count and see if it ever increases to begin with?

Member Avatar for GoneGirl
0
622
Member Avatar for Florin_1

What are you trying to do ..? I think what you want to do is place the if statement inside the for loop ..

Member Avatar for Maritimo
0
188
Member Avatar for divinity02

Pretty much what james said but if round is an integer and that's what keeps count of the rounds, increasing it should work

Member Avatar for JamesCherrill
0
372
Member Avatar for Reverend Jim

You can disable that from within the application^, although its on be default ..

Member Avatar for vegaseat
0
458
Member Avatar for nitin1

I had a course on android couple of years ago, the project was to create a hangman. It starts with a nice splash screen few animations, then you are taken to the main menu where you can select Play, Settings, Help etc, if you click Play, well you play the …

Member Avatar for Slavi
0
132
Member Avatar for polar2323
Member Avatar for redtribal23

Try checking what's the `size` of your numArray and show stacktrace as stultuske alrdy asked for

Member Avatar for Taywin
0
194
Member Avatar for EarhawkPH

make a print method which is being called after each transaction and prints the updated contents

Member Avatar for stultuske
0
364
Member Avatar for ali11

[Look at this](https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html) It says ArrayList method set(int, element), the way you have it now is set(element, int)

Member Avatar for Slavi
0
182
Member Avatar for chubbyy.putto

He pm'd that he thinks isValidText doesn't work, I tried this, works good for me public class Test{ public static void main(String[] args){ String s = "Ø"; byte[] b = s.getBytes(); System.out.println(isValidText(b)); } public static boolean isValidText (byte[] test) { if (test[0] > 0 && test[0] < 127) { System.out.println …

Member Avatar for Slavi
0
292
Member Avatar for COKEDUDE

I don't see anything wrong with the code, tried running it using terminal as well, works fine. Could be something with Netbins itself

Member Avatar for Slavi
0
125
Member Avatar for RikTelner

You can use packet analyzing tool, for example using Wireshark. It will display all the traffic in and out But doing DDOS is not really something that you have to do yourself anymore rea lly ... I've seen many online services offer to do it for you, at exact time …

Member Avatar for RikTelner
0
197
Member Avatar for bmwwbb54

What I would do instead is something like this pseudo code input from user // such as(name name1 name2) split the input from user and your regex is space, into an array of Strings at this point you have 3 strings into an array, your initials are the first char …

Member Avatar for Taywin
0
2K
Member Avatar for 2384443
Member Avatar for bmwwbb54
Member Avatar for stultuske
Re: Knee

Oh wow ;( Sorry mine's pretty bad as well, was leg day yesterday! Whats wrong with it, did you injure it? If I were you i'd implement a replace method ... =) get better sooner!

Member Avatar for Warrens80
0
170
Member Avatar for shungkiu.lee

and to add to both of them ^^ Using [Scanner](https://docs.oracle.com/javase/8/docs/api/java/util/Scanner.html) in java, you can read text files, and do it by reading an entire line from the file at a time Once you have a line available, you can check if it contains 0, if it doesn't you print yes, …

Member Avatar for JamesCherrill
0
186
Member Avatar for rhydham1

your scanner object is supposed to read input from users, not an object of your class that has not even been decleared I'd suggest you start again from this point, and ask about any line you add in your code that you are not sure about import java.util.Scanner; public class …

Member Avatar for stultuske
0
92
Member Avatar for chubbyy.putto

You can read through a text file and compare the words in the file to a word of your(or your user's) choice, if there is a match, then the word is in english unless it is not

Member Avatar for Taywin
0
120
Member Avatar for JamesCherrill

I will try it out tonight on my laptop and both screens at home, will get back with results

Member Avatar for Slavi
0
197
Member Avatar for happygeek
Member Avatar for Slavi
2
134
Member Avatar for Slavi

Well basically, I was coding earlier and I encountered this for(int i = 0; i<acl.size();i++){ //System.out.println(acl.get(i)); if(acl.get(i).contains(role)){ permissions = acl.get(i).split(":"); if(permissions[operation].equals("yes")) return true; } } and I was getting index out of boundary exception, but I knew that wasn't the case so I decided to use a for loop to …

Member Avatar for Slavi
0
137
Member Avatar for fireballthor

First of all, there is no need to write into an absolutely dead thread .. Second, if you can't even think of a loop that can do 1 to 5, you might really want to consider starting from the basics ... Third .. well here's a loop in 2 versions …

Member Avatar for Slavi
0
339
Member Avatar for J.C. SolvoTerra
Member Avatar for divinity02

The problem is that you want to have your if loop inside the for, because now you execute the for loop, you end up having a value of 15, then your if loop executes with only that value, therefore 1 number was entered and it was odd as well

Member Avatar for stultuske
0
314
Member Avatar for ambageo

Perhaps take a look in [Here](https://www.daniweb.com/software-development/java/threads/199459/simple-java-applet-wont-run-on-eclipse#)

Member Avatar for ambageo
0
334
Member Avatar for Sylvia_H
Member Avatar for Search_not

I agree with both, @stultuske and @James, This isn't really something you should do while learning java, if you want to make GUI based projects you could implement basic ones to get an idea of how things works(which I assume you know by the way you talk about stuff) such …

Member Avatar for Slavi
0
155
Member Avatar for happygeek
Member Avatar for saddam_1
Member Avatar for CimmerianX
0
92
Member Avatar for awesomelemonade

Nope, it lands on the moon first, for a quick beer on the way How long does it take before whales learn to fly after their birth?

Member Avatar for Slavi
1
2K
Member Avatar for Trevor_4
Member Avatar for strikeymate

Hey mate, thanks for adding the post. I've actually had the same problem when I added Windows 8.1 to dual boot with my Linux. Everytime I switch between them , the clock completely went nuts and it was really annoying. I think my solution was to go to a registry …

Member Avatar for Slavi
0
327
Member Avatar for HyperCyber

Create an arrayList that has input type your person object. When a new object has been created, simply add it in the arrayList ArrayList instead of array because, in an array you have to specify the size of the array upon declaration, of course you could copy and move it …

Member Avatar for Slavi
0
159
Member Avatar for london-G

Pretty much what rubberman said, its VPN's that are used to do so, but you have to be extremely careful on setting up things, such as firewall policies ...

Member Avatar for london-G
0
204
Member Avatar for Warrens80

I bought 2002 Golf, 4 or 5 years ago then I moved abroad and never got the chance to use it properly ;(

Member Avatar for Slavi
1
398
Member Avatar for chousoleil.leap
Member Avatar for lena1990

Hey lena, There was a daniweb member trying to create voIP using java, as far as I know he didn't manage to finish that project, it seems to be difficult in a way, but if you start and show us some work I am pretty sure we'll figure out something …

Member Avatar for lena1990
0
278
Member Avatar for Glaven

Instead of printing the array(element lookup) at that position, check if the element at that position is equal to the one that the user entered, if it is then increase a count, if not take element at next position and so on until you go through the entire array after …

Member Avatar for Slavi
0
247
Member Avatar for Slavi

Hey everyone, I;ve implemented SSL to my server using [this guide](https://blogs.oracle.com/lmalventosa/entry/using_the_ssl_tls_based) now when I connect the server it takes some time to initialize now, I assume its setting up stuff, and then when the client connects takes awhile as well (few seconds), I'd assume it works but I want to …

Member Avatar for Slavi
0
594
Member Avatar for Patrick_7
Re: JAVA

Here is a hint ... the first one in a) , when a number has !, it defines the factorial of a number, for example lets look at 5! `5! = 1*2*3*4*5` so in order to get !1+!2 ..etc , you need to define a method that computes the factorial …

Member Avatar for Slavi
-1
137
Member Avatar for cambalinho
Member Avatar for hithirdwavedust
0
160
Member Avatar for mxwarning
Member Avatar for Slavi

Hey guys, Just got a quick question ... I am implementing a client GUI, and part of the requirements are that the client is able to start, stop and restart the server. This got me a bit confused since the client connects after the server is running. What I am …

Member Avatar for Slavi
0
318
Member Avatar for moaz.amin.37

from what I understand, when you click b2 for example, you want ur op1 to be 2? If so, in actionPerformed, the if statements .. for example if source was b2 if op1 is empty , op1 = 2; else op2 = 2; and so on until you fill it …

Member Avatar for moaz.amin.37
0
313
Member Avatar for haya_1

First of all, you are missing class declearation in your file!!!! try using for loop to print out the values of the LinkedList? Also, why do u need the linkedlist if its just a number keep it only as `int n` then you could `System.out.println("The user entered number of employees: …

Member Avatar for haya_1
0
132
Member Avatar for wbbb54

What do you need help with exactly? Noone would just write the entire thing for you ...

Member Avatar for samson.dadson.3_1
0
317

The End.