Posts
 
Reputation
Joined
Last Seen
Ranked #963
Strength to Increase Rep
+3
Strength to Decrease Rep
-0
84% Quality Score
Upvotes Received
14
Posts with Upvotes
11
Upvoting Members
7
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
4 Commented Posts
~21.6K People Reached
About Me

Main occupation : e-Learning researcher.
Meanwhile : Computer science teacher basically : algorithmics, information systems, software design and theory of organizations.

Interests
Software development, Java, JVM languages
PC Specs
Dell Inspiron N5050
Favorite Tags
Member Avatar for Robert_72

Hi, I'm not really sur but isn't there a "public" directory or this is something usual in JNode. Also, you may add Javascript tag instead of Java tag.

Member Avatar for Sanket_17
0
2K
Member Avatar for miller anderson

Hi, 1. This algorithme will have a O(n) complexity : you will check all the tree, so the "binary" particularity doesn't change things. 2. cout excutes : 1+3+6+10+15+21+... Sum of (1+m)(m/2) and m changes from 1 to n To simplify, it will b a O(n³) (I think)

Member Avatar for Tarek_2
0
306
Member Avatar for Dave_20

Both answers (one table, many tables) are correct but you must choose the right one. So, you must answer this question : "Does Category have any useful additional information ?" If Yes then you must create it as a table. If No then you must keep it simple and use …

Member Avatar for overwraith
0
616
Member Avatar for Prosatanos

Hi, The first code seems correct, not really pretty, but correct. I would write : public boolean addIfAbsent(UserBean userBean) { if (users.stream().anyMatch(x -> x.getUsername().equals(userBean.getUsername()))) { return false; } else { users.add(userBean); return true; } } } And I would call it in the if statement. The second code seems to …

Member Avatar for Tarek_2
0
471
Member Avatar for Heung min

Hi, It's a parsing code, and as Venkat Subramaniam said : "don't show your parsing code to any one, it is always ugly" :) So, start by looking in "seminar.txt".

Member Avatar for JamesCherrill
0
281
Member Avatar for random_1

Hi, You have two characters here : The 0A (10) is the "new line" character, The 0D (13) is the "return to start" character. You're not in a binary file, you're in a text file so you must check the ASCII code to know which charcter has the displayed value …

Member Avatar for Reverend Jim
0
307
Member Avatar for fatima_7

Hi, You must check your CSS selector here : img.resize means the tag img with the class name .resize somthing like : `<img src="/path/to/image" class="resize" />` Otherwise it won't work. Check [this course](https://www.w3schools.com/cssref/css_selectors.asp)

Member Avatar for Tarek_2
0
273
Member Avatar for screenedcreamy

Hi, I highly doubt it's possible. If we don't know the class structure than we can't use it after parsing. I have seen (in Groovy) examples where the JSON object is converted into a map and you can, after that, get all keys and values easily. I have found some …

Member Avatar for Tarek_2
0
365
Member Avatar for fatima_7

I will assume that this is your first try and you are new to this so let's start together : *StrongTEETH4U is a private dental clinic that is well known and has an excellent reputation in the area. All patients in the clinic have their details stored in a ClinicBook …

Member Avatar for Tarek_2
0
701
Member Avatar for kenneth_12

In addition to what stultuske has said, you can use t and c directly because they are the content of the JTable row.

Member Avatar for Tarek_2
0
446
Member Avatar for alda_1

Two methods in the same class : JOptionPane.showInputDialog() JOptionPane.showMessageDialog() Documentation here : https://docs.oracle.com/javase/7/docs/api/javax/swing/JOptionPane.html But, as others have said, you must be able to : convert from String to int, manipulate arrays (small ones at least) and may be loops to write a proper solution.

Member Avatar for Tarek_2
0
300
Member Avatar for COKEDUDE

And I will add the following : in the begining, the first version of your code, it is recommanded to not mix actions; separate reading from checking. Read what you need to read then check the result in the while condition even if that means you need to put the …

Member Avatar for rubberman
0
263
Member Avatar for Moksuhd

In the first loop, you have a block so, I think it must be : do { // }while( //condition); In the second loop, I don't get the first line : mark += ranges.length; I think you must rethink a good part of the program.

Member Avatar for JamesCherrill
0
444
Member Avatar for Paul Brian

First, choice2 is supposed to be an integer (int) but in the while condition, we can read (choice2=true) Second, choice2=true is not a comparaison, it is always true. I think you should use choice2==true and here again choice2 is supposed to be compared to an int value not a boolean …

Member Avatar for tinstaafl
0
245
Member Avatar for rahaf_1

Well, start by creating a new project, kept the "Main class" option checked, open your main class and we will continue from there.

Member Avatar for rahaf_1
-1
1K
Member Avatar for George_23

Hi, The statement : printStream = new PrintStream(new FileOutputStream(fileName, append), autoflush); Creates the file but does not write into it. You must write in the file using : printStream.print() [More details](https://docs.oracle.com/javase/7/docs/api/java/io/PrintStream.html)

Member Avatar for JamesCherrill
0
525
Member Avatar for Lena_1

Hi, I think you're juste starting so let's be simple : 1. You already have the statement that generates the random number, 2. All you need to do is an if...else to check if the random number is > 90 && < 100 to display A 3. Start by one …

Member Avatar for Tarek_2
0
380
Member Avatar for Syed Suleman

Hi, If it must run in a web browser then you must learn (or search codes in) J2EE (Servlets/JSP) not simply Java (J2SE). Good Luck.

Member Avatar for Tarek_2
0
180
Member Avatar for newprogrammer14

Hi, If I get it right, your problem is on the front end : how to format the display ? First, the most used format are XML and JSON because they allow us to use in-built parsers , so you won't be stuck in string processing. To create a JSON …

Member Avatar for newprogrammer14
0
343
Member Avatar for Aarav

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 format](https://en.wikipedia.org/wiki/Comma-separated_values) is a text format wich means a simple FileWriter can be used without any external APIs. The generation takes …

Member Avatar for Tarek_2
0
354
Member Avatar for Slavi

I agree with JamesCherill, it can be a design problem, and the solution you propose is probably false : restarting a server aims to clear the cache or to erase temporary data; disconnecting and reconnecting the client can't guarantee that.

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

Hi, I don't think isValidateRoot() means what you think it means; I don't think you need it here. You have two JTextField, one for the inputs, the other for the result, so what's the problem? All buttons will use the same JTextField.

Member Avatar for moaz.amin.37
0
311
Member Avatar for vivekH

Hi, I don't know if I came too late, but there's a simple solution, especially if the exercise concerns loops, you can make successive subtraction of 2 util the value is less than 2, if the final result is 0 then the number is even, otherwise the number is odd.

Member Avatar for vivekH
0
274
Member Avatar for Navneet_2

Hi, We can't do your homework, you will learn nothing. But, some hints may help you ; 1. It's evident that you need to use a loop inside another one : The first loop is to create many lines, The second one is to print many stars or dots. 2. …

Member Avatar for jwenting
-2
199
Member Avatar for LilPrincess017
Member Avatar for NardCake

Interesting, I see the java famous "import" and "string" is a data type, the main method is almost the java one, but without creating a class to test few lines of code.

Member Avatar for Tarek_2
1
799
Member Avatar for redtribal23

Hi, JamesCherill is right, you must use the size variable not the DEFAULT_SIZE, but you need to initialize it : public Queue(int capacity) { elements = new int[capacity]; size = capacity; } Annother probleme : before adding an element you must check if the queue is full or not, and …

Member Avatar for Tarek_2
0
353
Member Avatar for kayleigh0411

To resolve this, you must use the try-catch differently : your methods must throw exceptions not catch them, and the try-catch bloc will be in the enterJButtonActionPerformed method. [A simple tutorial here](https://weblogs.java.net/blog/manningpubs/archive/2013/06/13/using-throws-and-throw-statements-java)

Member Avatar for Tarek_2
0
202
Member Avatar for Pyler

Hi, `private class KellyCoffee<Order> extends Queue implements OrderLineInterface` Otherwise, the declaration seems wrong : a class can't extend herself.

Member Avatar for Pyler
0
295
Member Avatar for Pavan_5

I'm not sure I understand what you want to do here (first of all, the code is not readable"), but what I know, your "perm" array is not a matrix.

Member Avatar for JamesCherrill
0
424