22 Archived Topics
Remove Filter ChatGPT is too powerful, will it replace all programming forums in the future? | |
I want to display name,description and image in `GridView.` export default function NFTViewer({ }) { const [galleryList, setGalleryList] = useState([]); const metadata = []; const cardActions = []; const [data, setData] = useState() useEffect(() => { const getNFTDetails = () => { fetch("http://localhost:4000/getDetails").then(response => { return response.json() }) .then(posts => … | |
Why header background not changing to red and font style not changing to coiny? **index.js** import Head from 'next/head' import Image from 'next/image' export default function Home() { return ( <div className="min-h-screen h-full w-full flex flex-col bg-brand-light overflow-hidden"> <Head> <title>Create Next App</title> <meta name="description" content="Generated by create next app" /> … | |
I've been code for android/ios using flutter more than a year. Now I would like to learn new things by using software to **create image** instead of just getting icons from google material design (just like image below). Any recommended ? Thanks.  | |
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. | |
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? | |
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!!!  | |
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 … | |
Hey guys, I have a little bit confused on below code and output **Main ** public class Main { public static void main(String[] args) { ClassA classA = new ClassA(); System.out.println("====== Before ====="); classA.checking(); System.out.println("===== After ====="); classA.checking(); } } ** Class A** public class ClassA { boolean b = … | |
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; … | |
Hi guys , is me again ! I get stucked on this question Write a program that read an integer and display its smallest prime factors in ascending order. For example, if the input is 60, the output should be 2,3,5... I came out with below code, but I get … | |
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. … | |
In my Food Tab, I wanted to achieve this [Click Here](https://sfault-image.b0.upaiyun.com/358/064/3580648794-597611aa1f701) But I only able to get this [Click Here](https://sfault-image.b0.upaiyun.com/779/111/779111227-5976120f6955a) How can I increase the width of the JTextField which are in Food Tab ? Below is my code public class FoodOrdering { static private JFrame frame; static private JTextField … | |
I wonder how to handle exception in `ResponsesEntity`. When it receive wrong url, it supposes to go to the `catch` block and display the `log`. But I keep getting error message in console. The `try-catch` not working as it not display log message. @GetMapping("abc/{Id}") public ResponseEntity info(@PathVariable("Id") String id) { … |
The End.