32,204 Topics
| |
Hi guys, I have a question about error handling. Still working on the addition application and now that I've learned what are the correct exceptions to handle I'm not sure what to do when I've established that the my inputs are all valid and print my result. Let's have a … | |
HI guys, I'm really new to SVN and today I've installed tortoise as I'm working in windows at the moment and I'm following this tutorial https://tortoisesvn.net/docs/release/TortoiseSVN_en/tsvn-qs-guide.html. So, I have a java project in Eclipse: I have created a local repository folder on my machine and imported a project in it. … | |
Chaps, I wonder if you can give me a hand with this. Here's the brief: "Create a program that draws 10 random filled shapes in random colors, position and sizes. Method paintcomponent should contain a loop that iterates 10 times. In each iteration, the loop should determine whether to draw … | |
Hello all I have a chat room application where clients connect to server and can chat between each other, I am also trying to add a feature where a client can request a file from the server sucha s an image sound file or video I am trying to convert … | |
i Am new to selenium webdriver and I want to automate a webpage related to my project. I am currently working on login page, however I facing problem with the login button which I am confused which locator to use. The login button is below: a href="javascript:LoginSubmit('Log In')"> img border="0" … | |
Hi guys, I have a simple application which allows users to input a divisor, a divident and then calculates the quotient. I'm using vaadin as framework but I don't think that matters. So I've been thinking about the exceptions that can occurr and these are the ones i have identified: … | |
THE CODE BELOW IS FOR SAVING FORM DATA FROM HTML FORM TO A TEXT FILE IN THE LOCAL COMPUTER. BUT, THE TEXT I AM GETTING IN THE TEXT FILE IS ALWAYS IN A SINGLE LINE AND I CAN'T ORGANIZE IT. THE CODE BEING USED IS AS BELOW. <!DOCTYPE html> <html> … | |
Hi daniweb community, this sounds really weird question but I'm having a problem finding a page/portal. has been about 2 days and I've been searching literally for more than 30 hours. From the desperation I am asking any of u if they know it. Inside microsoft page, or microsoft azure. … | |
Hi! Can I ask for help, please? How can I pass variables especially array variables and values from a class to other class? | |
Java code to get windows service start time ? Like how we get using Process Explorer. Thanks in Advance! PFL for Screen Shot: https://drive.google.com/file/d/0B5KXd3eMbanKckt0YXZCTERWU2c/view?usp=sharing | |
hi!guys pay some attention there thanks can any one tell be what is the difference b/t java and java script.. According to my point of view java is programing language that used for the application development..but i have a little knowledge about java script i think it is client side … | |
Hello, I am facing a problem I cant seem to find an efficient solution for. My application is supposed to parse a text file while another process is continuously adding to it. I have tried scanner and inputstream but both seem to stop once they hit the end of the … | |
Hello everyone! I have been working on my school project and I have encountered problem linking jTable with a table in the sql server.Can anyone please help me regarding it.Please help me with the code on how to link the the table. | |
Create a payroll program for 5 part timers for 1 month let the user program enter the name of 5 employee and the No. of hours per week. Based on the rank,calculate and display Net Salary based on the ff: Rank Rate per hour Instructor I Php 172 Instructor II … | |
Hi! I'm a beginner in Java can you share an answer for this assignment since I already been doing this for a week and I don't know how to answer. Create a Student class with those attributes: 1. firstName 2. lastName 3. grades (it contains grades between 0 and 10) … | |
Hi, I have one function (in a library I can't change the code) which takes a key and returns a Object. This code is written in java. I am calling this function from cpp code. I am accepting the result as jobject. 1. Added key as "key1" & value as … | |
I really want to learn Java but I have no idea how to study it. I just keep reading the books yet have no idea how to program. :( | |
Hey new to JDBC SQL DERBY and Java so I don't know why but my Jtable only shows the columns. Here are my codes for my LeaderboardDAO class. public class LeaderboardDAO extends Dao { private static final Logger LOG = LogManager.getLogger(PlayerDAO.class); public static final String TABLE_NAME = "leaderboard"; private static … | |
Hi, How to programming in java through make the web video chatting application? Please tell me about this knowledge and in which are require the skills. | |
Hello. Im doing some practice questions and Im kinda stuck. So basically I have three Jbuttons: "Menu", "Left" and "Right", a JTextField : "tDisplay" and an array : status. code (dummy code for example): String[] status = {"hello","goodbye","goodnight","goodmorning"}; what needs to happen is when Menu is clicked Hello is displayed … | |
Hi My code is giving me a red line under '.createStatement()' and I really don't know why and how to fix it. @Override protected String doInBackground(String... params) { if(userid.trim().equals("")|| password.trim().equals("")) z = "Please enter User Id and Password"; else { try { connection con = (connection) connectionClass.CONN(); if (con == … | |
Hi, I have been working on JNI. I have one doubt. When I call any native method from android activity (Java code), then we get jclass object from jobject instance we get in the native method as a parameter. Why do we need it actually? Here is a snippet from … | |
I would like to delete a binding group from my java code, Netbeans does not allow me to do it.I try to do this by right click >Refactor > Safely delete , but a warning appears and the group is not removed. How do I go about deleting this? | |
Hi, I have problem I can't add to the JTable new row (public void addRow(ArrayList<Object> newRow)) from the other class with action of the button Main.java import com.sun.javaws.Globals; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import javax.swing.event.TableModelEvent; import javax.swing.table.AbstractTableModel; import javax.xml.bind.annotation.XmlElementDecl; public class … | |
Anyone here know a good java library for XADES signing? Tried my luck with Xades4j, but that didn't go anywhere, couldn't find any API for that. Please provide code examples if you can. | |
Hi guys, I wonder if you can help. As I've started as a programmer, I've been told I have to practice OO a bit more. I've done the theory, but I think I will have to take another look at it. , Above all though, I have to do exercises. … | |
I'd like to start from the basics if I may please. I've read a few tutorial here and there and I've just created a test application with probably the simplest RPC calls you can possibly have (basically I want to use the RPC call to call a method to print … | |
I want to learn java for competitive programming . I'm actually aware of all the great books on java like thinking in java , effective java etc. But those books are very detailed . i want to learn enough for competitive programming without going into too much of unnecessary details … | |
Hi all; how can i find equal string in 2D array in java in this program,, i mean in this code i have 2D array 2 rows and 4 columns,for example in my code the equal string is "orange" ,,so how can search for any equal string in 2D array … | |
Hello , I'm new with java and I have a work to do, but I don't understand anything :( Can someone please help me ? Create a program composed of two classes called: GradeCalculator (with main ( ) method ) and Student. The Student class structure is presented below: Student … |
The End.