35,618 Topics

Member Avatar for
Member Avatar for checho

Hi i have the next task. 5. Create a hierarchy Dog, Frog, Cat, Kitten, Tomcat and define suitable fields, properties, constructors and methods according to the following rules: All of these are Animals. Kittens and tomcats are cats. All animals are described by age, name and gender. Kittens can be …

Member Avatar for JamesCherrill
0
834
Member Avatar for Ecliptical210

Hi Guys, I posted earlier, and I figured it out after a few hours of playing around with it. Now, a new question arises. Is it possible to get the input from a JTextField and add it into a JComboBox via an array? The only thing stopping me from achieving …

Member Avatar for javaAddict
0
154
Member Avatar for GoldenDrago

I had posted earlier requesting help with my code, but I quickly cleared up my issues. I am almost complete with my work, but I was just wondering if I could get some help on fixing some code which may cause my program to crash or not function properly. [CODE]public …

Member Avatar for javaAddict
0
82
Member Avatar for Ecliptical210

Hi guys, I'd really appreciate it if someone could look over my code and tell me why my JComboBox isn't working. I've got 3 Classes, 2 for the GUI, one for the standalone which the array is contained in. [CODE]import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JFrame; import javax.swing.JComponent; import javax.swing.SwingUtilities; import …

Member Avatar for javaAddict
0
159
Member Avatar for Ashwin1985

Hi.. I have created an application which is using the org.apache.log4j.Logger class for logging various INFO/DEBUG?ERROR messages.. The application is working fine, including logging, when Run As Java Application in the Eclipse IDE..(log file is generated successfully and entries too are created) Then I exported the project to a .jar …

Member Avatar for peter_budo
0
2K
Member Avatar for karkar_87

Hi all... I need some help in manipulation of the text files to read in a matrix text file. The format of the text file is as follows: <matrix> rows = 2 cols = 2 1 2 2 4 </matrix> I need to read in the text file and put …

Member Avatar for musthafa.aj
0
320
Member Avatar for mahm240

when i runnig my jsp page some type of error occurd(deployement error).i am running the page in netbean under glassfish server.how can i remove this error.

Member Avatar for mahm240
0
55
Member Avatar for RossMc

Hi, I am creating a RPG Character Generator and I have a InputDialog box which asks the user to enter there characters name. I have a do while loop to check for if the user entered a character which allows runs through the code if the users enters a correct …

Member Avatar for musthafa.aj
0
129
Member Avatar for Austinjs0102

Alright, so i have some code i have been working, i basically have done the skeleton and have looked through my Java book and scowered the web for some ideas. I'm stuck on a few thing. basically i am trying to write a program to break a code. I enter …

Member Avatar for musthafa.aj
0
605
Member Avatar for coldheart27

i need a little help with this problem as soon as possible: Establish a program that will accept any 10 input number. if the said inputs are greater than 10 inputs display an error using try, catch, finally syntax. then display the sum of the numbers. >>tnx

Member Avatar for darkagn
0
69
Member Avatar for kendaop

I'm trying to create my own little collection of code that I can basically copy and paste into programs as I need them, but it seems to be causing some problems. After importing a LinkedList class and a Node class into Netbeans and then changing the constructors a little bit, …

Member Avatar for kendaop
0
140
Member Avatar for nainish

Hi! m doing a project for MSc academic year, m i need a implementation code of single perceptron network, which will hv six inputs and a single output which gives acurate result....

Member Avatar for peter_budo
-1
82
Member Avatar for isuruj

I am using CruiseControl Binary Release 2.8.2 and I am sending mails using this. I can only send the url for log file generated by the software. So I need to add some text to email body and attach a file. So can you please tell me how should I …

Member Avatar for Ezzaral
0
84
Member Avatar for Emret

Hello code monkeys :p I need some guidance with an application that I am working on. The idea for the application is as follows: The user is presented with a search field where he/she is supposed to enter a control number. This control number has a relation to a certain …

Member Avatar for doctorfox
0
239
Member Avatar for SandeB

hello everyone, am a third year university IT student. I am preparing for my final year project. I have basic knowlegde of java and am confident of my tcp/ip, i need a project idea(s) using these two and how to go about it if possible. I need help from the …

0
39
Member Avatar for stella09

:icon_redface: what is the equivalent code for this in JAVA :icon_redface: C: for(i=0; i<MAX; i++) { printf("Give the %d element\n:", i+1); scanf("%d", &VECTOR[i]); }

Member Avatar for Ezzaral
0
63
Member Avatar for eikal

hi, i'm making a simple program where it when you type a name of soemthing from a video game it will give you a brief description, i'll be using if and else statements, here is what i have so far. [code=java]import java.util.Scanner; public class WoW { public static void main(String[] …

Member Avatar for eikal
0
85
Member Avatar for samirf

Hi All I am a peoplesoft developer and I dont understand JSP too well . I have following two questions about the code below . 1) Are we using a POST call to [url]https://SomeUrl/ssoreq.asp[/url] (not a GET request) ? 2) Are we assigning the content-length and content-type header variables prior …

Member Avatar for peter_budo
0
139
Member Avatar for klimenta

I have an abstract class called student with an abstract method add(). I also have other classes undergraduate, graduate, parttime that extends student. Requirements are that I have to have an abstract class student and the same abstract method add(). This method needs to write to mySQL DB elements entered …

Member Avatar for ~s.o.s~
0
318
Member Avatar for Acegikmo

[B]This has been solved! Look at the end of this post.[/B] Hello! I'm having some trouble here with polymorphism, as I need to access methods in a subclass from an array of superclass objects. This method is called parseCommand(Command c); The method exists in the superclass and is overridden in …

Member Avatar for masijade
0
275
Member Avatar for Ashwin1985

Hi Is there any way I can use a pair of keys(private-public key pair) generated externally for encryption/decryption of files rather than generating a pair of keys for every cycle of encryption/decryption ?? My program requirement is that I need to run an encryption program packaged in a jar file. …

Member Avatar for Ashwin1985
0
184
Member Avatar for adam291086

Hello, i am trying to add a keyboard event listener to my Jpanel. But i am having no sucess. This is my [B]board.java[/B] [CODE]package snake; import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.awt.geom.*; import java.awt.image.ImageObserver; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.ImageIcon; import javax.swing.JComponent; import java.awt.Image; import javax.swing.JPanel; import java.awt.event.ActionEvent; import …

Member Avatar for thomas_naveen
0
1K
Member Avatar for wild_angel

Hi All! I have a table that there is a combo box inside the table. For example, the combo box consist of item codes. And then, whenever user choose item from combo box, the next column inside the table will show name of the item. Here is my example coding: …

Member Avatar for wild_angel
0
231
Member Avatar for checho

hi i have the next problem i have an array or arraylist from class Student which has firstname, lastname and grade. How can i sort them by grade (value) - ascending and descending? [CODE]package zadacha_1; import java.awt.List; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; public class Zadacha_2 { /** …

Member Avatar for Andreas Hollman
0
489
Member Avatar for Larbi

Please, show me How to return to a calling void method within or without using the RETURN (in java). Thanks

Member Avatar for verruckt24
0
283
Member Avatar for blainj

Im brand new to java and programming in general. Just wondering if someone could help me out with my homework. Method 1: Write a public static method named myUserName. This method does not return anything. This method accepts no parameters. This method simply prints out your engr username (all lowercase …

Member Avatar for musthafa.aj
0
80
Member Avatar for luisgomez

Hello, my name is Luis Gomez, i'm the responsable for z3950's client development, i want to thank you for your time and will for help us. I've already revised de code, i looked some test source code: /*Test source code */ public void testLOC2() throws Exception { app_context = new …

Member Avatar for adams161
0
597
Member Avatar for alkeshtech

Hi guys, I am wondering how can I create a sorted linked list, without using Collection.sort(). Is there a way I can add element in a list in a sorted fashion?

Member Avatar for Andreas Hollman
0
114
Member Avatar for deepak17

i want to make a project on messnger in java wit the help of jsp and sql database so kindly elp me on my project i m fresher so plz give the basic detail also

Member Avatar for peter_budo
-1
79
Member Avatar for jemz

hello please help me on this i have gui then it has 2 textfield, input your name then input your last name...when i click the add button the 2 textfield are clear then when i click the search button there will be JOptionePane.show input dialog then prompting the user "Please …

Member Avatar for peter_budo
0
73

The End.