32,205 Topics
| |
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 | |
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, … | |
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.... | |
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 … | |
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 … | |
: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]); } | |
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[] … | |
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 … | |
[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 … | |
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. … | |
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 … | |
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: … | |
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 { /** … | |
Please, show me How to return to a calling void method within or without using the RETURN (in java). Thanks | |
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 … | |
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 … | |
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? | |
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 | |
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 … | |
Please suggest how thius can be achieved and best approach to follow. a) Suppose server1 have application which is started using "java -[B]Xmx512M[/B] -jar <[B]app1[/B]>.jar" from command prompt from particular directory example C:\proj\application1> C:\proj\application1> Based on certain condition I want to stop this <app1>.jar on server1 and b) Start app.jar … | |
hi. .. im asking for a code of the mastermind game. . . wer d user guess the 3-color pattern randomized by the pc. . .. the user have only 6 guesses. . .. if he guess a color in d ryt position or a color in d wrong position … | |
Hi, I am new to java programming, but i have this problem: I open an image, i put ir in array 2 dimensional, teh idea is like this array[count][0]=x; array[count][1]=y array[count][2]=red; array[count][3]=green; array[count][4]=blue; array[count][5]=alpha; I do so becaude i need to work with colors, but later on i want to … | |
//i have written this code in package p1:: //address of this file is:::C:\p1 package p1; public class balance{ String name; double bal; public balance(String n,double b) { name=n; bal=b; } } //and now i want to import this file in this code //address of this file is:::C:\Program Files\Java\jdk1.6.0_11\bin import p1.*; … | |
I have compiled a java program in suse10 without a problem but it comes to running it i encountered this statement :Exception in Thread "main" java.lang.No such method Error :main | |
GIVEN: patient,doctor,descriptions of doctor,does+medicines,visits,invoice,invoice detail. 1-recognize the given in a table 2-desighn the organized table 3-determine the primary and secondary key 4-describe | |
hi, i'm working on a little project i made for myself, i want to create a menu with 4 choices and i want to use an array cause im struggling to understand how write them, now ive started to do it but i've lost myself in the code and don't … | |
i want to set some initial level parameters before calling main method... how to do... within main i can set it first but it have no effects... | |
Not sure if this is the right place to put this as it's my first post, so if it's not I apologize. I'm wondering if there is a way to put an image into the background of my applet. I've searched all over the place and just can't seem to … | |
Hi! I'm writing a java app with a swing gui. The problem is the following. I am developing on a mac, where it runs fine. but when I run it on Windows Posready09 (Windows XP), which is the platform the app is intended for, or Windows7, half of the window … | |
I have got given a homework: FileDescription program requests (as shown) and reads three lines of text. It then processes the data. For each line the first string (containing no spaces) on the line is a file name – followed by a file description. If the file name has the … |
The End.