36,051 Topics
![]() | |
Hello I am studying for the 1Z0-803 (Oracle Certified Associate, Java SE 7 Programmer) exam and I have the hardest time with following the flow of nested loops. On practice tests I do ok on more complex concepts like polymorphism but I miss over half of question with nested loops. … | |
Hello, I am working on project of developing video stagenograhy. i have referred following link. http://www.dreamincode.net/forums/topic/269189-video-steganography/ also read a lots of material on it and found total 10 encoding and decoding algorithm. please send/suggest me good material for video steganography. Just let me know how can encode/decode my message using … | |
hi all just a question. if you are making a if statement in a game and the compile is not reading the condition in the if statement and it jumping out and reading the rest of the codes what is the cause of that. I am trying to build my … | |
hi Iam doing a payroll system for a compny where I have to implement a program to calculate workers pay. for commission paid workers, hourly paid workers and fixed monthly paid worker. i have done the codes but something is wrong somewhere between the codes. cant tell if it is … | |
This project deals with EOF-based loops, using the while construct where we do not know the exact number of times a loop will iterate (perform the associated block of code). We will continue to build on our knowledge of if/else constructs. Use the variables given below to solve the problem. … | |
it it is me again. I am know guys are probably thinking am bothersome here is my question. it is about the java game am building no I havent finish it yet, still having some trouble i have declare this syntax, I know that I have asked this question before … | |
i want to populate jtable from database upon clicking on jbutton...how could i do this?? | |
Hi I wanted to draw a field like this photo which I have attached. I would appreciate your help. I have wrote so much now: for (int x = 2; x < 12; x++) { for (int y = 2; y <= 12; y++) { g.drawRect(40*x, 40*y, 40, 40); } … | |
product between 2 arrays of 2 dimensions and be the score is stored in another array using ecplise and gridsim for exemple: mat3[i][j]= mat1[i][j]* mat2[i][j] | |
I can't figure out the code for, 1) Get an error message dialog when there's no input in the textfield. 2) Get an error message when you put alphabets or other characters except for numbers. | |
SO i feel totally annoying but I got to ask for advice. As you see in the title im trying to call a constructor from an other class. Im trying to add and create a new gymMember for every weight that is found in the file into a new array … | |
I got 1 when i pass button and if i pass the second timeis still 1 not is ++ int click = 0; public ButtonHandler(int x, int y, MineGrid g) { row = x; col = y; grid = g; } public void actionPerformed(ActionEvent event) else { click ++; JButton … | |
How come this program doesn't run? Well.. not just this program, all my other ones. There are no mistakes, I wrote the code as this textbook says but its not running and its giving this error (on dr java): 1 error found: File: (no associated file) [line: (no source location)] … | |
This class is designed to test the efficiency of the two search models. You will simultaneously populate both arrays with the same random numbers. This will guarantee that both arrays have the exact same content. Sort only ONE array using Arrays.sort. This sorted array will be used with the bin_search … | |
Hi guys, Im trying some stuff out in java but im a little stuck and confused by stackoverflow answers so I wanted to ask here if its ok. I have a lot of code but I just took out this one little part that i wanna be able for a … | |
Hi everyone ; Thanks to Dani, there are lots of links provided around the topics like this. I am a single Java programmer, writing short java programmes in Eclipse. However, i need to work with others and produce long but managable java codes. Briefly my ambition is : 1.Creating some … | |
getting following error: incompatible types: vmpr cannot be converted to JFrame JFrame VendingMachine = new vmpr(); import java.awt.Container; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JLabel; import java.awt.*; import javax.swing.*; import javax.swing.JFrame; public class vmgu extends JFrame implements ActionListener { public JButton button[]; public JLabel label; public JLabel label2; public … | |
I need to create stateful web pages consisting of various forms to be filled up by the user. I want to make UI tools look something like that DOJO framework provides. My problem is what tool is better suited for this type of website?? DOJO+JSP ? (but i'm confused about … | |
hi guys remember that I had a game to build and was asking for help, well I spoke with my lecture and the game what I was talking about is more or less a program. it is a Java multiplication table math game but I have to build it like … | |
Hi I wonder if anyone can help please. I am stuck after unmarsheling complex type from JAXB in my web service operation. I can successfully unmarshal and loop through it which is fine however i am performing a search and want to return all the elements that match the search. … | |
I have this hex code and i want to convert to binary. 242465313037382c3031343536373536343335363738322c5858582c3134303632363033343033375f43314530312e6a70672c32332c302cc3bfc398c3bfc39be2809e13200e100e0c13100f10151413161c2f1e1c1a1a1c39292b222f44c2ab62e2809cc387243d03c592c2a9c387434c0e38064628c39f794e202d3101c2a4c2a601452534c593c39201282002c5bec2abc3b8c5bec39401c2a505c2a948c382e2809a15c39bc2ab3535c5a0c38648690139c3aa5ac2b4e280b921c2a1c28d2065210e7d4d371de280a127c39054c38b5654741de280b0c3986120c380c3b734c3a16f70c3b804c386e282ac761cc393c3a615e280a1c3bde28098c388c3834ec398c3bf6540c2a3c3acc5a00fc38d70c398c3bac5a0571ecb863cc2ab45c3ab213fc28d01c2ad13c2a47bc2bec2abc5a149e282acc2be7c23c3aec383c3ba203ec3947fe280a0151f5a2f7013c3ad52c3ba20c3bc2920c384c387c3b8c388c3ba2041713cc3997fc3a7c2abc3be746e73c395c39bc3b33420c3a1c38fc2ad1408514b400b566c57c3bd6b7d050345e280b010c2bc6ce282acc3a3771401e280b03de2809a01c3bac39058c3bc53c3a219e2809cc3b0c2a4c3981fc3bfc390c3abc2b6c5937bc393c3820e6801c3a146314b4c02c5a0282002c5a06b20742a4706c2b3c39e36195ec592290114e2809a5946646520c3bdc395c3afc3b5c2a8192a3741 but I don't know how to convert this kind of data. Thank you in advance. | |
Hi guys I have no idea how to go about this but I would like to create a form that displays results in the text area . For example if a user fills up his/her details on the form and clicks the submit button , his/her information would be displayed … ![]() | |
I need to calculate the digest value of the x509certificate and insert the siging process time. The signature format is XADES-BES | |
Hello, I'm new to the DaniWeb community and I am in need of some serious help. I am taking a web design class, but the teacher I currently have now has no idea what he is doing; he is an Info Tech teacher, but we have two classes at the … | |
I could use some assistance My final project in a python class is to calculate the distance between 2 lat/long points. My code is really just managing the input & output portions, while using existing code (properly credited) in a function to do the actual calculations. I've got it working … | |
hi guys how are you all, I sincerely hope that you all christmas is shaping up very good. I am doing my individual assignment, yes another one, a take home this time, I am to implemented a payroll system into a company using a for loop and which i did. … | |
Below is the question from a core java interview. Could somebody please help me? There are designation and employee objects. Designation Employee Designation object --> Designation object is in employee ArrayList<employee> emptemp = new ArrayList<employee>(); emptmp.add(R1); emptmp.add(R2); .. .. .. Now we need to write an helper class or utility … | |
HELLO guys IM beginner using java IM asking what is my problem of my codes?? can you fix it?? import java.applet.Applet; import java.awt.Color; import java.awt.Graphics; public class invalid3 extends Applet implements Runnable { /** * */ private static final long serialVersionUID = 1L; private int x0 , y0 , incx … | |
I am doing this assignment in my Java class. I have never done any programming in my past so I am a complete beginner. I have typed up a program that will ask for employee name, the hourly rate, and the number of hours worked. The program needs to run … | |
My program compiles with no errors, but when I try to use it, the results do not show up and there is an error. Please help!!! import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.text.*; public class RetailSales extends JFrame { // declarations Color black = new Color(0, 0, 0); Color … | |
How do i put a flag on location that the user right click on it. and how do i put an img to all mine in game board when game is end? I try to put an img but wont work? How can i fix it? here is what a … | |
Can someone please! Fix this for me? My program : loop reads 10 double numbers after that inserts them into an array list. after that print MAx and MIn And AVg THIS MY PROGRAM WHY I CAN NOT MAKE COMPILE Fix this for me : import java.util.Scanner; import java.util.ArrayList; import … | |
Is string primitive value in java? What is difference between primitive value and primitive data type in java? Thanks in advance. | |
Row 1[ item1, item2, item 3, item 4, item 5, item 6, item 7, item 8] Row 2[ item1, item2, item 3, item 4, item 5, item 6, item 7, item 8] Row 3[ item1, item2, item 3, item 4, item 5, item 6, item 7, item 8] Row 4[ … | |
Example of problem: Pattern one is: 1, 10, 1: 1 Pattern two is: 10, 10, 10: 0 From this extremely simple pattern we will know that a small value followed by a large increase and then a large decrease means it is a 1. Otherwise its a 0. Using something … | |
hii I have a list having m1 m2 m3........ m922 and in each there are a1 a2 a3 a4 are there like m1=a1 a2 a3 a4 a5 a6 m2=a1 a2 a3 a4 a5 a6 m3=a1 a3 a5 a7 a8 a2 etc and i want this as m1=a1 a2 a3 a4 … | |
Hello i need some help on what to add to the following if statement for the out put to read the value of sum times the actual number of sum: public class ICMA42 { /* instance variables */ private int alpha; private int bravo; private int sum; /** * Constructor … | |
Hi Friends, I have tomcat 7 and eclipse. My problem is when I start tomcat without war file it starts successfully but when I am Adding my war file by right clicking on Tomcat Server in eclipse, it gives in following exception : java.lang.RuntimeException: Unable to scan WEB-INF for JAX-RS … | |
public class ICMA42 // instance variables - replace the example below with your own private int alpha; private int bravo; private int sum; /** * Constructor for objects of class sum which initialises sum to 0. */ public ICMA42() { this.alpha = 0; this.bravo = 0; this.sum = alpha + … | |
Following Error is shown well going to DGFT India Site. How to Resolve ERROR WHILE SENDING OUTPUT access denied ("java.net.SocketPermission" "164.100.128.143:8100" "connect,resolve") | |
Hey Guys, I am building app using a huffman tree, and am building this java program to just test a few things and I am having some trouble. I have everything working except that I am having troble decompressing a huffman string back into the original string. I would appreciate … | |
Is there a way to calculate large numbers without using BigInteger? I am calculating an exponent without using the math class. | |
I am having problems with it continuous loop at the end of the program. Any help would be appreciated. Thank you. Below is the coding so far. [CODE]import static java.lang.System.out; import java.util.Scanner; import java.io.*; public class Investment { public static void main(String[] args) { double principal = 0; double interest … | |
hi all I have a question. I am still trying to build this game/program but I declared a console and was told to import it which i did, the problem is that I am constantly getting an error line underneath the console, can u guys tell me why is that. … | |
Hi, If you look trough my code you can see that i have tried to print out some values (the mean value) with a scanner from a csv file with the help of an enhanced for loop (the absolut last loop) and it gives me NaN (not a number). And … | |
I am trying to convert my code into generic and I get an error at o1 + o2 stating that cannot find symbol for o1 and o2 then bad operand types for binary operator on the push(pop()+ pop()). public abstract class MyStackGeneric <E> extends ArrayList <E> { protected abstract E … | |
Hi! Newbie Java Programmer here! I've done a cash register program. this error's pretty unusual to me. i dont know how to fix this. import java.text.*; import javax.swing.*; import java.awt.*; public class CashRegisterV1 { public static void main (String[] args) { DecimalFormat fix = new DecimalFormat("0.00"); //QUANTITIES int Nido = … | |
i have written a connectivity code for ms access to jsp but i get a error message root cause "java.sql.SQLException: [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application" | |
so i need help on Modifying the source code to sort on the Title (in ascending order) and display the book title, comma space, author’s first name, comma space, author’s last name. Ensure all your variable names are appropriately named. and i also need help Modifying the source code to … | |
I'm trying to use this code, but it will only display the image in jtextpane and it does not display the text. JLabel label = new JLabel("<html>some text here<img src='http://www.yoursie.com/image.jpg'></html>"); then using this label in JTextPane. |
The End.