22 Solved Topics
Remove Filter I notice a bug..  This post is not written by Dani, but it shows Dani is the writer ? | |
Example from this post https://www.daniweb.com/programming/threads/533787/how-to-solve-this-i-got-same-answer There are three replies (include one answer from OP), one of the replies mark as recommended answer. Is the recommended answer marked by OP? It doesn't looked like an answer though. | |
What are all num referring to ? class Sample { int num; void method() { num = 1; int num = num = 2; num = 3; } } | |
In my main activity, I have two tab, named tab1 and tab 2. Tab 2 page consists of a listView and I use StreamSubscription to listen upload progress result. On tab2 action bar, it has one icon. When icon is pressed, it will navigate to pageC,which consists of listView, and … | |
When posting code, I get error > begin a line with 4 spaces in a row (or one tab), preceded by a blank line. 4+ spaces or tabs may not be used anywhere else. | |
Hi,if I have interested on one of the forum, example post which has Java tag, can I receive notification if someone is posting on that forum? | |
Are there any differencies between these two code ? if (!a.equals("")) { editDate.setText(a) } and if (a!="") { editDate.setText(a) } | |
When we build an application, which layer should we start with? From top (UI) to bottom(Data Layer) or bottom to top? | |
I making an android app which need to display data analysis in Gantt Chart. I implement this library from https://github.com/PhilJay/MPAndroidChart and it runs smoothly in my app. But what I'm worrying is if this library has been removed from github repo, will my app get effected? | |
When I leave a comment (vote with comment ) under someone post , it will increase 2 points for vote up and 0 point for vote down. After I leave the comment and click the vote up button, the user earn 2 points. But after I vote down again, the … | |
Parents please be aware and very cautious of what your child watches on YouTube and KIDS YOUTUBE. There is a thing called ‘Momo’ that’s instructing kids to kill themselves, turn stoves on while everyone is sleep and even threatening to kill the children if they tell their parents!!!  | |
Recently I realized that I not receive any email notification from DaniWeb. When I check on the User Settings, I saw this alert message > We have been having problems emailing you. Has your email address changed? Please update your email address to begin receiving email from us again. After … | |
There are **Complementary Goals** in profile page. Where can I find the list of goals and what does this used for ? | |
First of all, I would like to say that the interface is nice, amazing, and user friendly!! Thanks Dani and those who work hard on this !!! But one thing I would like to comment is about the **vote and comment**. It seems like only users with high reputation allow … | |
The API docs are now found at [ Java Development Kit Version 11 API Specification](https://docs.oracle.com/en/java/javase/11/docs/api/) | |
Question from codility test Write a function: class Solution { public int solution(int[] A); } that, given an array A of N integers, returns the smallest positive integer (greater than 0) that does not occur in A. For example, given A = [1, 3, 6, 4, 1, 2], the function … | |
I trying to write a `spring batch` using `SpringBoot`. At first the program will read data from database, then write it to `.csv` file format. This is the code I have tried **Reader** @Bean public ItemReader<A> Reader() throws Exception { List list = new ArrayList<>(); JdbcCursorItemReader<A> reader = new JdbcCursorItemReader<A>(); … | |
I feel hard to understand how the LayoutManager work even the GUI is quite simple. I trying to make the button place below the Tel No JTextField, but it placed beside Address JTextField , not below TelNo JTextField. package gui; import java.awt.BorderLayout; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import javax.swing.Box; … | |
Use a **for** loop to find the smallest integer n such that n^3 is greater than 1000 So I came out with below code public class Chapter4 { static int n = 0; public static void main(String[] args) { for (int i = 1; Math.pow(i, 3) <= 1000; i++) { … | |
Write a program that displays all numbers divisible by 3 and 4 within a range entered by user. Display five numbers per line. Numbers are separated by exactly two spaces. This is my code public class Chapter4 { public static void main(String[] args) { Scanner input = new Scanner(System.in); final … | |
I have multiple JSpinner which have items 1-10 , and one JTable. When the JSpinner is clicked, the value will be added to JTable. I want to get the row number so I can use it at setValueAt. But I get error when the JSpinner clicked more than once times. … | |
The End.