Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
42% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
10
Posts with Downvotes
6
Downvoting Members
7
3 Commented Posts
~20.9K People Reached
Favorite Tags
Member Avatar for Xeros606

Not an ArrayList. An Array. For some reason, my teacher (or rather, the lesson plan we are using) requires that we make a program that takes an array of integers and removes all the zeroes. So far I have: [CODE] public void remove(int index) { for(int i = index; i …

Member Avatar for JamesCherrill
0
3K
Member Avatar for jrosh

Please any one can guide me how to write a [B] mysql database search[/B][I] in java....[/I] I want to search mysql database for some data in keywords. please help... thnakx

Member Avatar for Sardar_1
0
2K
Member Avatar for techgeek420

Hey Guys, This is my first program where I have used JLabel and JText. Im trying to create a program that will solve a simple quadratic equation. I have the program to the point where it will solve the equation, I just cant get it to display in the window. …

Member Avatar for stultuske
0
185
Member Avatar for 47pirates
Member Avatar for Zaad
-1
210
Member Avatar for GeekTool

I use a book to learn Java ,and this book contains making a difference question in each end of the chapters. I finished chapter 5, which is all about if and switch statements and operands such as bitwise and logical and loops. Now, it asks me to create a quiz …

Member Avatar for stultuske
0
129
Member Avatar for jwings

I have problems with adding images to JFrame java application. Now I am using Eclipse IDE. Below is the code that no images is shown. import java.awt.BorderLayout; import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JFrame; public class LabelDemo { public static void main(String[] args) { JLabel northLabel = new JLabel("North"); ImageIcon labelIcon …

Member Avatar for NormR1
0
254
Member Avatar for venkateshyeluri

I am developing an java application for for login autentication form, I have pre saved username and password in my database. When admin enter his credetials, it validates to my DB and gives access to actual application Now, my application is used by admin and database is managed by DBA. …

Member Avatar for JamesCherrill
0
213
Member Avatar for peck3277

Hey guys, I'm trying to develop a simple tool. I'm having but I'm having trouble accessing some swing components. My gui basically has a jtabbed pane with two, jbuttons beneath it. Each tab is identical except for the title, it has a jtextarea and two jbuttons. These buttons perform an …

Member Avatar for Zaad
0
139
Member Avatar for jade_91

So basically I have created a linked list which allows me to enter numerical data into a list and for it to be sorted, added to and deleted but I need to add text into the list as well but not sure how to go about it I've tried changing …

Member Avatar for Zaad
0
415
Member Avatar for Zaad

Hi techies got a small problem a swin related one... I found a similar article here [Click Here](http://www.daniweb.com/software-development/java/threads/89427/how-to-programatically-select-a-cell-in-a-jtree) But seems no answer for that in that particular thread in this forum. Since that is a very old thread thought it would be right to put in my question as a …

1
62
Member Avatar for uurcnyldrm

Hi folks, I'm new here and looking for a simple but educational&interesting idea for my CS project. It's my first year and we'll work in teams, so it should not be too difficult to handle, but also not so simple. I'm waiting for your suggestions.

Member Avatar for DavidKroukamp
0
700
Member Avatar for 3nrichedd

Hello, I am trying to create this ascii art using nested for loops, [CODE] ***** ////////// ***** **** ////////\\ **** *** //////\\\\ *** ** ////\\\\\\ ** * //\\\\\\\\ * \\\\\\\\\\ [/CODE] I tried doing a paper check and this is what I have so far... [CODE] * / \ * …

Member Avatar for Zaad
0
137
Member Avatar for Zaad

Hi; This is a code that I got from the examples in Oracle in using the javax.print When i try to compile and run a get an error saying javax.print.PrintException: java.lang.IllegalArgumentException: URI is not hierarchical [CODE]package printtry; /* * Copyright 2001 Sun Microsystems, Inc. All Rights Reserved. * * This …

Member Avatar for Zaad
0
4K
Member Avatar for Zaad

Hi All; Im just making a simple Desktop app. Ive got a need so that the user could be able to add data to the table dynamically. Ive done implementing the table and also code for adding rows. Issue is after i add the row it is not displayng in …

Member Avatar for Zaad
0
1K
Member Avatar for nicolemarie

public static void main(String[] args) { World earth = new World(); Turtle t1 = new Turtle(earth); t1.penUp(); t1.moveTo(50,50); t1.penDown(); t1.setPenWidth(5); t1.drawLetterN(5.0); t1.penUp(); t1.moveTo(500,400); t1.penDown(); t1.setPenWidth(3); t1.drawLetterN(2.0); t1.penUp(); t1.moveTo(330,50); t1.penDown(); t1.setPenWidth(15); t1.drawLetterN(15.0); t1.penUp(); t1.moveTo(250,240); t1.penDown(); t1.setPenWidth(8); t1.drawLetterN(7.0); t1.penUp(); t1.moveTo(10,350); t1.penDown(); t1.setPenWidth(10); t1.drawLetterN(10.0); } public void drawLetterN (double scale) { System.out.println("drawLetterN was …

Member Avatar for Zaad
0
980
Member Avatar for Gsterminator

I need to know how to create methods to compare two sets of singly linked lists. The only problem is that I can't put a linkedlist inside the method parameters. Please help [CODE]import java.util.*; public class SLinkedList { protected Node head; // head node of the list protected Node tail; …

Member Avatar for Gsterminator
0
193
Member Avatar for MichaelCJ10

I need help!!! im trying to get my sentinal to stop counting as my last value passed. Im imputting a value for a house,and its calculating a total price based on interest and stuff ive set up according to the house value. then pressing -1 to go onto the next …

Member Avatar for DavidKroukamp
0
251
Member Avatar for pbracing33b

I am having problems with this line of code: --System.out.println(line +"is ranked at" + location + " in popularity amoung girls with" + model.getFrequencyListName(location));-- what it is telling me is that I need an int method for getFrequencyListName, and I have have one but it is for an array. Obviously …

Member Avatar for Zaad
0
181
Member Avatar for gouki2005

Hi guys i am having this exception [I][I]Initial SessionFactory creation failed.org.hibernate.MappingException: Foreign key (FKF5B10F06F8C1E633:detalle_pedidos [pedido_id])) must have same number of columns as the referenced primary key (pedidos [pedido_id,cliente_id,empleado_id]) Exception in thread "main" java.lang.ExceptionInInitializerError[/I][/I] according to this my table pedidos mismatch detalle_pedidos here pedidos pojo [CODE]import java.math.BigDecimal; import java.util.Date; import java.util.HashSet; …

Member Avatar for Zaad
0
201
Member Avatar for askylitcity

Hi, I'm having an issue with the following directions: public static int aPower(int a) Given a number a > 1, Returns a number n such that for some m > 1 we have a = n ^ m. If no such n exists it returns 0 public static int aPowerOf2(int …

Member Avatar for Zaad
0
96
Member Avatar for kei01040

[CODE]import static java.lang.System.*; public class ShipTester { public static void main (String []args) { Ship s1 = new Ship(); s1.setX(3); s1.setY(10); s1.setSPeed(22); out.println(s1.getX()); out.println(s1.getY()); out.println(s1.getSpeed()); out.println(s1);//calls the ToString method Ship s2 = new Ship (3,10, 22); ship s3 = new Ship(5,7 ); s3.setSpeed(19); out.println(s1.equals(s2));//s2 becomes rhs out.println(s1.equals(s3));//s3 becomes rhs } …

Member Avatar for Zaad
0
103
Member Avatar for LiquidSolid

Hey guys, I am making A Vending Machine Program and seem to be getting error's when trying to do things outside a class and stops the Program. (Vending machine should keep looping until Quit is typed, and it will display a summary of money and cans left. [CODE] ******SODA MACHINE …

Member Avatar for Zaad
0
162
Member Avatar for mikej39

I have this code i compile it and it ran but nothing came up can someone help with this? [code]import java.util.Arrays; import java.util.Comparator; import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.GridLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.text.DecimalFormat; import javax.swing.Icon; import javax.swing.ImageIcon; import javax.swing.BorderFactory; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import …

Member Avatar for Zaad
0
176
Member Avatar for queendaedra

Hello everyone, I need some help understanding some concepts and possibly with my logic on this problem. We are supposed to create a program that asks users for their name, id, and grade average. The set is supposed to be where the exception is thrown. When the user enters their …

Member Avatar for Zaad
0
390
Member Avatar for queendaedra

Here is the assignment criteria : Implement exception handling to validate user input as was described in class. You need to at least catch type mismatch exception. No late or by emailed homework will be accepted. We are to have a student enter their name, id and grade. The name …

Member Avatar for JamesCherrill
0
150
Member Avatar for Hikari123

Hi, I am a beginner so bear with me. I have an assignment in which I have to create an array with numbers and then have a loop with condition to check in which order the user has inputed the numbers. Asc=1, desc=-1, other=0. This loop isn't working, i know …

Member Avatar for Hikari123
0
123
Member Avatar for naomi_01

Hi, I'm trying to have a set of random numbers into ArrayList and to print it. e.g. if the total number is 10, [2,3,5] or [1,5,2,2], etc. In below, it gives me each numbers but because y gets zero, it throws an exception. Can I have help to print all …

Member Avatar for Zaad
0
180
Member Avatar for Nandomo

I am doing Gui's on Netbeans and am writing a program that sells flower ornaments and such. I have everything added to an arraylist. But when it comes to showing, I am on another tab and need to pass the arraylist to that method for display, any help? Link me …

Member Avatar for Zaad
0
178
Member Avatar for ARaza110

[CODE]public class cation { public static void main(String[] args) { new cation().run(); } public void run(){ harada hara=new harada(); insert(hara); insert(hara); } public void insert(harada hara){ if(hara.left==null){ hara.left=new harada(); } else{ insert(hara.left); } } class harada{ harada left; public harada(){} } } [/CODE] Can someone please explain, recursion in objects …

Member Avatar for ARaza110
0
167
Member Avatar for zmstevens

I am a first time user to Java and I am stuck and cant figure out what to do.. Please help. My code is [code] import java.util.Scanner; public class rshomework2 { public static void main ( String[] args) { Scanner input = new Scanner(System.in); sales; final double base = 800; …

Member Avatar for Zaad
0
357