35,618 Topics
![]() | |
Hi everyone I am trying to get this done and it is not happening :to implement the method for the is Empty and is Full. I am suppose to check for an empty stack and check for a full stack But I am not getting it? Can someone see something … | |
Hi, I wanted to change the color of the first two rows of a Jtable .How do i achieve that? I have written the follow: [CODE] TableCellRenderer render1 = null; render1 = new myCellRenderer(); [/CODE] And the renderer is written as : [CODE] class myCellRenderer extends DefaultTableCellRenderer implements TableCellRenderer { … | |
:)Friends. I am new to struts. I am designing one Login page which works fine. Now i want to add Remember Me option to login page. Help me to do this. Thanks in Advance. | |
Hi every one, I am new to java and am making an application where the main window has buttons and menus to be clicked.i cant find the code to use on the button so that when i click the button the window i want is displayed.e.g; i have: mainpage.java and … | |
Hi all, i need help with this code im trying to produce. I've been searching google for days without finding any answers so please youve got to help me understand. The idea is to encrypt a string inputted by the user I wish to increment the letters at odd positions … | |
Hey everyone. I am new to java and I am stuck in this program. I am getting error messages and cannot figure out why. On public class Rectangle I am getting error messages on lines 84, and 85. On RectangleTest line 12. Thank you all in advance for and guidance … | |
i am trying to connect to mysql database using java. I have done connecting to microsoft access before. and i modified my code to connect to mysql server locally. i think the problem is I don't really understand where my mysql database is. anybody may point out the problem would … | |
i have a client server and i send data perfectly to the client its when the client wants to send or update data which is the problem. what i am trying to do is check to see if the object that is passed to the server has a id and … | |
can any one send me a link to get the best book to learn j2me. i have to work on some mobile games using J2ME. thanks in advance.. Balaji | |
Hi, actually m doin on project in which we need free domain space wher i can run my JSP to execute client request???can anybody help me out from this???? | |
Hi, im trying to call this method in my class "MyWidget" which is suppose to draw a line when someone indicates the coordinates via 4 parameters. Here is the method: [CODE]public void Connect(int xline, int yline, int nextX, int nextY) { Graphics g = getGraphics(); g.drawLine(xline, yline, nextX, nextY); } … | |
I need help with trying to convert a String of number to a Integer Array. I will then be adding the to Arrays together like any addition problem, but I am having trouble with just getting the string in to the arrays without it outputting jargon. [CODE] public static int[] … | |
Hello. I am a extreme n00b at programming in Java and was wonder if I could get some advice on how to execute some of basic commands. I am working on a group project in school (Computer Science 30) and my group is creating our own extreme basic version of … | |
Okay i've created an array object with help from here like so: CdRecord[] array = new CdRecord[5]; array[0] = new CdRecord(); now i've used a while statement to write to the arrays , im writing CDName,AlbumName & NumberOfTracks... when i run my program it all works except that when i … | |
Rather than read in the sales data we will generate it randomly using the Math.random() function. Write a function called Random that accepts two parameters of type double. The Random function will generate random numbers between a range defined by the parameters, The first parameter defines the lower limit and … | |
Alright, this is for a project designed to make us use inheritance. This is Creature, which is a subclass of Thing. Creature is supposed to be able to eat, move and tell what it ate. Here are my issues: 1. How do I use a constructor from Thing in Creature? … | |
I am currently writing a program in Netbeans which will perform binary to decimal, decimal to binary, hexadecimal to decimal, decimal to hexadecimal conversions, 1's compliment, 2's compliment, and show the list of boolean algebra rules. I have created the GUI however, I cannot figure out how to make the … | |
[CODE]import javax.swing.*; import java.sql.*; public class BankAccountDatabase{ public static void main(String[]args){ Connection conn=null; Statement stmt=null; ResultSet rs=null,rs1=null; String url="jdbc:mysql://localhost/bankaccount"; String username="roo"; String password=""; String query="",query1=""; String accname,accnum,accpin; int PIN,key,menu,AccountNumber; String a,b,c,d,f,g,h,i,j,x,y,z; double dep,withdraw; double balance=0.0; try{ Class.forName("com.mysql.jdbc.Driver"); }catch(java.lang.ClassNotFoundException e){ System.err.print("ClassNotFoundException: "); System.err.println(e.getMessage()); } do{ a=JOptionPane.showInputDialog("MENU\n\n\n1 - Create Account\n2 - Delete … | |
my question is related to JSP and HTML. i have a jsp page which have three combo box and a button. one combo box for a class. two combo box for from_year, to_year. i want to reterive data on this same JSP page from database based on combo box value. … | |
What is the best way to flush the buffer of a Scanner? somescanner.nextLine() clears the buffer if it is not empty, butotherwise i get an extra nextLine. | |
Hi, I am working on an assignment that does the following... When the program starts, it should look to see whether a file is present that contains a serialized array of vehicles. If so, it redisplays them. Otherwise, it generates random vehicles, writes them to a file, and displays them. … | |
how do i generate all the topological ordering of (directed acyclic graph), i have written a program that can find 1 topological ordering, the problem is once i am finished i am left with a empty linked list as my algorithm involves deleting the traversed nodes which is crucial for … | |
Hi all, I want to configure Tomcat behind an SSL enabled Apache httpd server. Could anybody show me how to do this ?? I have successfully configured apache and tomcat for http requests. Thanks. | |
Hi everybody! I'm currently working on an assignment for school. I'm creating a linked list (a line at the liqure store to be exact) and I'm a little stuck. Part of the code: [CODE] public void ekspederKunde() { System.out.println("Velkommen til polet! Vennligst vis gyldig legitimasjon.\n"); if (fremst == null) { … | |
I like to known that how to assign the value for the check boxes.. Since one would check either one or two check values.. I need to store the all the values in SQL Database either has 0 or 1.... i.e.., if it is checked as 1 or if it … | |
Hello .. Hopefully you can answer my question.. We are working on a project that uses Netbeans as a java editor the project is a website that needs to be linked with Java functions and an Ontology, We built the website using HTML and we embedded the JSP code in … | |
Hi i need to change the random numbers in my output to random 'b''s that take up 2/3 of the array and random 'x''s to take up 1/3. Ive been at it for a few days and still have no clue on what to do. Heres my coding and output: … | |
hey guys, i have to do this program and i'm having trouble with this certain part: Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, … | |
Hey:) I am creating a project in java,but have been sick for the passed 3 weeks, so I am a bit stuck on how some of the code should look,and where it should be the details are that I am required to develope an application that will allow the user … |
The End.