-
Replied To a Post in how do i create executable file for java program?
Yes -
Replied To a Post in how do i create executable file for java program?
I understand, although all they can see is the generated byte code, not your source. Even creating an exe won't prevent a determined programmer from reverse-engineering or hacking it, so … -
Replied To a Post in java shell execute
Go to http://www.oracle.com/technetwork/java/javase/downloads/jdk-netbeans-jsp-142931.html and download the JDK/NetBeans bundle for Mac OSX. That's everything you need in one package. It's a standard Mac disk image installer, coudn't be simpler. When you … -
Replied To a Post in how do i create executable file for java program?
You don't. Java is cross-platform, and exe files are not. Give him the jar file and it will run on his Windows/Linux/Mac computer - anywhere with a JRE installed. If … -
Replied To a Post in Missing ). in Javascript ?
Was that intended to be a `for` loop? -
Replied To a Post in what does /n mean?
/n has no special meaning. But \n is the new line character. The \ is used to start an "escape sequence" that allows you to enter special codes like the … -
Replied To a Post in java shell execute
Yes, I did come on strong about obsolete versions of Java, but I'm not going to apologise. There really are hideous exploits for older versions of Java in the wild, … -
Replied To a Post in Help with sum of Even or Odds Array
Sorry. C, C++, C#, C no evil... the're all the same to me. But is there ANY language in which 25%2 is 5? Decepticon: yes please, please do share that … -
Replied To a Post in Help with sum of Even or Odds Array
I'm no expert at C++, so can someone else look at this and see if I'm missing something? > zachattack05 : 25 % 2 would return 5 -
Replied To a Post in java.lang.NullPointerException
Are you saying that `setContentView(R.layout.gridviews)` is where you get the NPE? Where is `R `defined. Is it null? -
Replied To a Post in Controlling Graph Data Structure Through GUI
Yes, absolutely. Although Buttons are the simplest to implement, you may not get the look and feel that you really want, so a better general solution is: As you draw … -
Replied To a Post in Life of a Programmer
It depends on your employer. Most companies expect you do attend meetings, drink coffee, document your code, fill in time sheets etc etc. Others expect you to code 22/24 hours … -
Replied To a Post in java.lang.NullPointerException
It would help if you told us which line throws the NPE, we're not mind readers -
Replied To a Post in interfaces and classes exercise
Yes, looks good to me. -
Replied To a Post in Controlling Graph Data Structure Through GUI
Yes. The simplest way is to display each node as some kind of button. Edges are a bit more fiddly - you proably want to allow the user to tap … -
Replied To a Post in interfaces and classes exercise
There has always been a controversy about whether you should use Exceptions to deal with user input errors as opposed to faults in the program itself. The Java API sometimes … -
Replied To a Post in java shell execute
This really is the easiest way... for example here's all the code to run a ls (list directory contents) command and display the output and any errors. ProcessBuilder pb = … -
Replied To a Post in java shell execute
If you want to see the output and the errors from your process the the simplest way is to tell your process to inherit its output and error streams from … -
Replied To a Post in java shell execute
You are confusing exceptions and process errors. You need the catch for your java program errors. Your process may issue its own error messages which will go to its error … -
Gave Reputation to AssertNull in Java Programming
For the user input part, see this snippet. https://www.daniweb.com/programming/code/506346/a-simpler-safer-alternative-to-java-util-scanner Or google "Java input integer". You'll need to declare an integer called highestEvenNumberEntered and initialize it to something less than the … -
Replied To a Post in interfaces and classes exercise
Yes, you absoliutely can store any mixture of Clients and Employees in a List of Persons -
Replied To a Post in java shell execute
> I will definitely print the stacktrace from now on. See line 26 You're still not displaying the Process's error stream - which is where error messages may be waiting. … -
Replied To a Post in java shell execute
First thing is to fix that terrible catch clause. If/when there is an error you just told Java that you didn't want to know anything about it, and please discard … -
Replied To a Post in java Bank account
> You need to write it out such as psuedocode or a flow chart Well, maybe, but in this case the brief and the required artifacts point clearly to an … -
Replied To a Post in java Bank account
> you can help, and send me an e-mail of solution No, absolutely not. That will not help you (unless your only objective is to be a learn-nothing cheat). Yes, … -
Replied To a Post in Combo Boxes and JTextFields
int cumulatedMillions = 0; // declared outside listener method // inside listener method... if(carsJComboBox.getSelectedIndex() == 0) { cumulatedMillions += 250; } if(carsJComboBox.getSelectedIndex() == 1) { cumulatedMillions += 500; } currentCarsJTextField.setText(cumulatedMillions … -
Replied To a Post in Combo Boxes and JTextFields
Are you sure that code is being executed? Maybe there's a problem with your listener. Try printing the selected index in those if tests to confirm. You can have a … -
Gave Reputation to Tarek_2 in How to write data from MySql table to Excel using Java?
Hi, In this particular case, personally, I don't use any APIs, I simply generate a csv file which [can be opened directy in Excel](https://support.office.com/en-gb/article/Import-or-export-text-txt-or-csv-files-5250ac4c-663c-47ce-937b-339e391393ba) like any other Excel file. [CSV … -
Replied To a Post in Survey questions using switch case
We only help people who are trying to help themselves. Your mastery of copy/ paste isn't enough. Don't post again until you have actually done some work, and have a … -
Replied To a Post in Syntax correctness
Those two are not equivalent. In the first you seem to hope that allowing your entity manager to be garbage collected is enough to be sure you have no resource … -
Marked Solved Status for string, string, int double has private access in account
hi all it has been a very long time since I have written anything in here everythings has sicne change, i cant even find the java forum in here but … -
Replied To a Post in Nested array printing etc - designing for reuse
Following the previous post, here's a replacement version of the Walker's recursive method that handles all Java's Collection types (lists, sets etc) as well as arrays in any combination. private … -
Replied To a Post in Nested array printing etc - designing for reuse
> One advantage of this design over the visitor pattern is that the calling code controls the traversal at every step Right there is the interesting distinction between passive and … -
Replied To a Post in Nested array printing etc - designing for reuse
Hi Yes, those terms are pretty synonymous - I just followed the NIO file walker style. I think it implies a 2D structure, where the others are more a 1D … -
Edited Nested array printing etc - designing for reuse
This is a little discussion/example of design for modularity and re-use, inspired by javaAddict and Orlando Augusto posts in their thread “Dynamic Multidimensional Array Printing” https://www.daniweb.com/programming/software-development/code/305580/dynamic-multidimensional-array-printing That thread has 3 … -
Edited Nested array printing etc - designing for reuse
This is a little discussion/example of design for modularity and re-use, inspired by javaAddict and Orlando Augusto posts in their thread “Dynamic Multidimensional Array Printing” https://www.daniweb.com/programming/software-development/code/305580/dynamic-multidimensional-array-printing That thread has 3 … -
Edited Nested array printing etc - designing for reuse
This is a little discussion/example of design for modularity and re-use, inspired by javaAddict and Orlando Augusto posts in their thread “Dynamic Multidimensional Array Printing” https://www.daniweb.com/programming/software-development/code/305580/dynamic-multidimensional-array-printing That thread has 3 … -
Edited Nested array printing etc - designing for reuse
This is a little discussion/example of design for modularity and re-use, inspired by javaAddict and Orlando Augusto posts in their thread “Dynamic Multidimensional Array Printing” https://www.daniweb.com/programming/software-development/code/305580/dynamic-multidimensional-array-printing That thread has 3 … -
Edited Nested array printing etc - designing for reuse
This is a little discussion/example of design for modularity and re-use, inspired by javaAddict and Orlando Augusto posts in their thread “Dynamic Multidimensional Array Printing” https://www.daniweb.com/programming/software-development/code/305580/dynamic-multidimensional-array-printing That thread has 3 … -
Replied To a Post in Dynamic Multidimensional Array Printing
I created a discussion around design issues, using this as the working example. See https://www.daniweb.com/programming/software-development/code/506561/nested-array-printing-etc-designing-for-reuse JC -
Edited Nested array printing etc - designing for reuse
This is a little discussion/example of design for modularity and re-use, inspired by javaAddict and Orlando Augusto posts in their thread “Dynamic Multidimensional Array Printing” https://www.daniweb.com/programming/software-development/code/305580/dynamic-multidimensional-array-printing That thread has 3 … -
Created Nested array printing etc - designing for reuse
This is a little discussion/example of design for modularity and re-use, inspired by javaAddict and Orlando Augusto posts in their thread “Dynamic Multidimensional Array Printing” https://www.daniweb.com/programming/software-development/code/305580/dynamic-multidimensional-array-printing That thread has 3 … -
Replied To a Post in caesar cipher in java source code complet
Do what you are supposed to do and write it yourself. Coming here and making rude demands is not the way to go. https://www.daniweb.com/programming/threads/435023/read-this-before-posting-a-question -
Gave Reputation to Orlando Augusto in Dynamic Multidimensional Array Printing
For pure pleasure friend. To reinvent the wheel maybe you can discover an optimization. ;-) Regards -
Replied To a Post in Dynamic Multidimensional Array Printing
Why re-invent the wheel? System.out.println(java.util.Arrays.deepToString(obj2)); -
Replied To a Post in any legal issues I might face by partnering for company registration?
You made the right decision - his reply just confirms that. -
Replied To a Post in ATM CASH DISPENSER ERROR
If you don't know if the code is c, c++, or Java then it's hard to take this seriously. -
Replied To a Post in Random picture
I asked exactly what help you needed. If you can't answer that then nobody can help you. Before going any furher read this excellent guide on how to ask for … -
Replied To a Post in Random picture
Exactly what help do you need? -
Replied To a Post in Please Help - Java
Maybe it's a thread-related problem - doing I/O on the swing thread, or updting the JTable from a thread other than the swing thread? Unless you are very careful you …
The End.