22 Solved Topics

Remove Filter
Member Avatar for John_165

I notice a bug.. ![Screenshot_2022-01-04_175310.png](https://static.daniweb.com/attachments/4/1bfc6ca4c5196e24cc1449ebfb4eea90.png) This post is not written by Dani, but it shows Dani is the writer ?

Member Avatar for Dani
0
85
Member Avatar for John_165

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.

Member Avatar for John_165
0
89
Member Avatar for John_165

What are all num referring to ? class Sample { int num; void method() { num = 1; int num = num = 2; num = 3; } }

Member Avatar for John_165
0
1K
Member Avatar for John_165

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 …

Member Avatar for John_165
0
221
Member Avatar for John_165

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.

Member Avatar for Anninflow
0
3K
Member Avatar for John_165

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?

Member Avatar for baabroz1
0
946
Member Avatar for John_165

Are there any differencies between these two code ? if (!a.equals("")) { editDate.setText(a) } and if (a!="") { editDate.setText(a) }

Member Avatar for bngwebguru
1
3K
Member Avatar for John_165

When we build an application, which layer should we start with? From top (UI) to bottom(Data Layer) or bottom to top?

Member Avatar for Dani
1
1K
Member Avatar for John_165

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?

Member Avatar for rproffitt
0
1K
Member Avatar for John_165

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 …

Member Avatar for Dani
2
4K
Member Avatar for John_165

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!!! ![download.jpeg](/attachments/large/4/dc1303529642573b46b66ccb1a2992ce.jpeg)

Member Avatar for Reverend Jim
-3
4K
Member Avatar for John_165

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 …

Member Avatar for John_165
1
4K
Member Avatar for John_165

There are **Complementary Goals** in profile page. Where can I find the list of goals and what does this used for ?

Member Avatar for John_165
1
3K
Member Avatar for John_165

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 …

Member Avatar for Dani
1
2K
Member Avatar for John_165

The API docs are now found at [ Java Development Kit Version 11 API Specification](https://docs.oracle.com/en/java/javase/11/docs/api/)

Member Avatar for JamesCherrill
0
2K
Member Avatar for John_165

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 …

Member Avatar for JamesCherrill
0
10K
Member Avatar for John_165

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

Member Avatar for John_165
0
374
Member Avatar for John_165

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

Member Avatar for JamesCherrill
0
537
Member Avatar for John_165

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

Member Avatar for rproffitt
0
1K
Member Avatar for John_165

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 …

Member Avatar for JamesCherrill
0
2K
Member Avatar for John_165

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

Member Avatar for JamesCherrill
0
1K
Member Avatar for John_165

A guy come from Malaysia, just want to say hi with you all :)

Member Avatar for happygeek
0
268

The End.