32,199 Topics

Member Avatar for
Member Avatar for DavidKroukamp

I have seen many people struggling with Reading files and writing files in java, also a great problem is how to edit a file too. So in this code snippet I have put all these problems into one small program in hopes to help others. So this code snippet will …

Member Avatar for Bdill7
5
23K
Member Avatar for Ray brad

My name is Ray Brad. I am a learner in Salesforce development and administration, and I also have knowledge of Java concepts. If anyone has questions related to these topics, feel free to comment, and I will do my best to answer them.

Member Avatar for Osama_21
2
48
Member Avatar for Mr.M

Hi DW, I've faced an issue with my project, it has been working these years till I think last year or the other year. When I sync it fails saying unable to resolve dependency no matter which version I try I get similar error differs with version number.

Member Avatar for WilliamOG
1
114
Member Avatar for TaraRiddle

Is there any method in java to generate random number (integer, byte or float) ? Please tell me if any i need it in my program. If possible please give full example. Thanks!

Member Avatar for WendyDolan
0
1K
Member Avatar for Robert_72

I'm start experiment with nodejs/coffeescript and the jade engine. I can see from the examples that setup are around seems pretty standard. app = express.createServer().listen process.env.PORT app.configure -> app.set 'views', __dirname + '/views' app.set 'view engine', 'jade' app.set 'view options', layout: true app.use express.bodyParser() app.use express.static(__dirname + '/public') app.use app.router …

Member Avatar for Sanket_17
0
2K
Member Avatar for sarfaraz_2

Hello, i've cleared my java certification exam and got the job interview. The interview will be held in the next month on 22 September 2024. I want to prepare for each every questions because i believe it would be the toughest round with BlackRock. This is my best call and …

Member Avatar for DEEPAK_84
0
61
Member Avatar for ASubhan

Reflect on your experience with object-oriented programming (OOP) in Java. Discuss how concepts like inheritance, polymorphism, and abstraction have helped you in your projects. Share examples and personal insights.

Member Avatar for DEEPAK_84
1
63
Member Avatar for Kajal_14
Member Avatar for ASubhan

Hello !! "I want to learn Java data structures and algorithms (DSA). I have recently learned Java object-oriented programming (OOP). Suggest me best tutorials for learning.

Member Avatar for trueframe
0
48
Member Avatar for varone

Hello, I have simple problem for professionalist (that i think ) but i asked all available AI about it and none was able to help and solve problem. so nothing is able to help me in this. I have simple app that show 3 colored axes and camera that move …

Member Avatar for varone
2
103
Member Avatar for Karen Morrow
Member Avatar for jprog1000

Hello, I have a program which creates multiple balls and bounces them off when they collide. This works fine. import java.awt.Rectangle; public class Ball{ private int x = 0; private int y = 0; private int radius; private int panelwidth = 500; private int panelheight = 500; private int xDx …

Member Avatar for aishamushtaq
2
155
Member Avatar for JILA
0
11
Member Avatar for Naija kid_1

Hi, Goodday everyone, I'm new to web development, please if I had questions, could I ask on her for a help reply?

Member Avatar for Dani
0
94
Member Avatar for nikk8a

Hello friends, I am stuck at a point in downloading multiple files as a single zip such that - the generated zip by my code for user download seems to be not a properly formed one. While trying to open the generated zip, I get an error as - "Cannot …

Member Avatar for Sachin_41
0
10K
Member Avatar for Vijay_34

So here, I am gonna to ask developers around which is the most popular language is used to develop a game for students or professionals.

Member Avatar for Esteban_5
1
106
Member Avatar for Lius

Need help with JTable header group : Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.table.JTableHeader cannot be cast to id.co.aal.common.GroupableTableHeader this is the part of table drawing ..... if(tabledraw) { tabledraw=false; for (int k = 0; k < m_data.getColumnCount(); k++) { TableCellRenderer renderer; if (k==Kehadirantable.COL_ALOKASI) renderer = new CheckCellRenderer(); else { DefaultTableCellRenderer …

Member Avatar for Jan_315
0
895
Member Avatar for jayashree10
Member Avatar for Shawne

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null. The error is from this line of code: home.addItem(new ModelItem(ID++, "Original Nuggets Meal", "", 90, "KFC", new ImageIcon(getClass().getResource("icon/img2.png")))); i use the correct folder as it is in a package in the same source of the file. please help!

Member Avatar for Shawne
0
265
Member Avatar for jayashree10

Describe prototypal inheritance in JavaScript. How does it differ from classical inheritance in other programming languages?

-2
31
Member Avatar for techlifelk

I get the following exception Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null My code is java.net.URL auth = getClass().getResource("auth.jpg"); Icon auth1 = new ImageIcon(auth); java.net.URL alert = getClass().getResource("alert.jpg"); Icon alert1 = new ImageIcon(alert); java.net.URL insuf = getClass().getResource("insuf.jpg"); Icon insuf1 = new ImageIcon(insuf); java.net.URL inva = …

Member Avatar for Dani
0
32K
Member Avatar for kukuruku

Is it OK to have if statement in the constructor Thanks [CODE] public class CTime { private int start_hour; private int end_hour; private int start_minute; private int end_minute; public CTime(int h1,int m1,int h2,int m2){ if(h1>=7 && h2<17 && h2*60+m2>h1*60+m1){ setStartHour(h1); setStartMinute(m1); setEndHour(h2); setEndMinute(m2); } }[/CODE]

Member Avatar for Washington AM
0
9K
Member Avatar for Artin_1

I've just finished reading Eric Matthes' Python Crash Course. A book which I found great to learn Python within a short time. The learning process wasn't really hard for me as I was already familiar with programming in other languages. Now I'm done with it and I've just started learning …

Member Avatar for Reverend Jim
0
105
Member Avatar for raj_41

If any of you have hands-on experience in developing texting platforms or have insights into the considerations involved, I would greatly appreciate your input. Factors such as real-time capabilities, scalability, integration with messaging protocols, and compatibility across devices are of utmost importance.

Member Avatar for Sajid_21
0
214
Member Avatar for abhishek_s_n
Member Avatar for Sofiia
0
1K
Member Avatar for abod_1

Hello, I am a programmer, but I stopped a long time ago due to the situation in our country, and I want to work again. Please help me with some money to buy your brother’s laptop from Syria.

Member Avatar for Reverend Jim
1
77
Member Avatar for Alex8585

It is to make some changes to an existing app, does anyone know how to use this tool? :)

Member Avatar for rproffitt
0
53
Member Avatar for Mindmade

Hi guyz, What is the main purpose of alpha and beta testing? From your own personal experience. Why is Beta Testing is very much important in mobile app development?

Member Avatar for Gulshan_6
-2
48
Member Avatar for GAMA44D
Member Avatar for Mindmade
Member Avatar for yddevelopers
-1
76

The End.