32,199 Topics

Member Avatar for
Member Avatar for Danii

Hi what is the difference between the following two code public int calculate(int x, int level) and public int calculate() int x; int level; Is there a way to make this first method to something like the second method? thanks

Member Avatar for VernonDozier
0
78
Member Avatar for agenic

The question is "Where am I going wrong?" See my embedded comments above code starting point. I can get this to compile, but I can't get this loop through the amort, before I beign building (finishing the loop) I need to see if I can display a single line with …

Member Avatar for agenic
0
161
Member Avatar for nanosani

I have made a hospital management system ....its GUI is creating some problems .... I have a container at the top level with Borderlayout ... a combo box is on its north ... and a JPanel is on its center. Combo box contains two items ... Doctor and Patient. the …

Member Avatar for jwenting
0
171
Member Avatar for Derice

Hi, I am given assignment to develop simple games on applet. I have problem understanding the function of some abstract class... any1 would like to explain to me? Thx in advance. [CODE] class snakeGame extends Applet implements Runnable { Thread runner; public void init(){} public void start(){} public void stop(){} …

Member Avatar for jwenting
0
113
Member Avatar for VernonDozier

I'm pretty sure the answer is a definite no if it is a pointer to a primitive type, but I have created classes called "network", "path", and "node" and I want them all to be able to refer to each other. These are not primitive types, so I hope I …

Member Avatar for VernonDozier
0
453
Member Avatar for karlmarxxx

I'm begining a project thats uses this [URL="http://www.supercheapparts.com/detail.jsp?partnum=68798"]ELO 1515L Touch Screen[/URL]. Am I going to have any problems getting a java application to work with this? Are there any additional Librarys or API's I might need? Thanks for the help

Member Avatar for jwenting
0
28
Member Avatar for darkagn

Hi all, I am wanting to display an image that is aligned so that the centre of a string of text is in line with the centre of the image. I know the image's dimensions and the length of the string, as well as the font I am using to …

Member Avatar for darkagn
0
193
Member Avatar for hazelle

hi!...this my code,,,and i knew there"s something wrong with it,,,or maybe something is lacking..would you mind to help me?...i need a very quick response..thanks....Godbless you... [COLOR="Green"]import java.io.*; public class Samplefile { public static void main(String args[]) { File fob1 = new File("dede.txt"); RandomAccessFile rob1 = new RandomAccessFile("Hector.txt","rw"); if exists("dede.txt") { …

Member Avatar for jwenting
0
89
Member Avatar for sannidhikumar99
Member Avatar for debee

Can someone help me please! I would like to know of any advice about reading data from a file, and then storing them in arrays. I have got to work with this set of data, which needed to be preprocessed first in the following way: The first set of ten …

Member Avatar for debee
0
78
Member Avatar for Parsu7
Member Avatar for torbecire

They are two classes. Fraction and calculator. Fraction does things like add, multiply.... The calculator class is supposed to call the methods in the Fraction class and output the data. The problem is i can't figure out where to put the calculator class so that it can output data. Here …

Member Avatar for torbecire
0
120
Member Avatar for rickilambert

This is the error message i get when i try and use the foor loop, cannot find symbol - variable split result [CODE]for(int i=0;i<=216;i=i+3){ MyPanel.txtbyellowentry.setText(splitresult[i+2]) ; MyPanel.txtbgreenentry.setText(splitresult[i+2]) ;[/CODE] What i am doing is, in my other class(matchlist) i am using a stringbuilder to send a group of matches to a …

Member Avatar for jwenting
0
89
Member Avatar for rickilambert

hey, is it possible for me to extend a class after extending jpanel and implementing action listener? public class MyPanel extends JPanel implements ActionListener can i make that extend MatchList class also? when i try it says '{' expected

Member Avatar for jwenting
0
64
Member Avatar for rickster11

I can't seem to figure this one out. It seems like it would be easy... I want the savePane JFrame to close when the user hits the saveButton. Is there a line that I enter here? Or is there something I need to include in my saveListener class? Any help …

Member Avatar for majestic0110
0
71
Member Avatar for TofiLuk

Can anyone fix this? What's wrong with my code? Accepts username and password as "admin" System.out.print("Enter Username: "); String user=myinput.readLine(); if (user=="admin") { System.out.print("Enter Password: "); String pass=myinput.readLine(); if (pass=="admin") { statement(s) } else if (pass!="admin") { System.out.println("Invalid Password."); } } else if (user!="admin") { System.out.println("Invalid Username."); }

Member Avatar for TofiLuk
0
70
Member Avatar for ramjeev

Hi friends, I m new to this forum.I m trying to make RAS dialup connection thru programatically.If anyone has idea.pls help on this.Your help would be highly appreciable. Thanks

Member Avatar for ramjeev
0
67
Member Avatar for Littlen

Hi All, Could you please help me, im trying to create a ASN1Sequence from a DERObject. The following is the code that i am using and the error that i am getting. [CODE] ASN1InputStream ais = new ASN1InputStream(abyte0); DERObject DEROctetString = ais.readObject(); ASN1Sequence asn1Sequence = (ASN1Sequence)DEROctetString; Exception in thread "main" …

Member Avatar for Tenk
0
273
Member Avatar for haquer02

Hi , For the following code , I intended to have a dialog box with labels balance , payment no : and a button named calculation. When the button will be clicked it should show the next balance according to the equation used in the code . But its showing …

Member Avatar for haquer02
0
117
Member Avatar for abhi_iips

what happens at memory level....when one object is assigned to another.... i have written 2 classes.....1st named base class mybase and a subclass named subclass.... now i create object of baseclass... mybase b = new mybase(); //and now i create object of subclass subclass c = new subclass(); b=c; now …

Member Avatar for bugmenot
0
104
Member Avatar for redZERO

I have not got javac on my computer, but I do have java. How do I get javac? I haven't downloaded the jdk yet because apparently it comes with Java as well, adding more to the download. can I just get JDK?

Member Avatar for VernonDozier
0
99
Member Avatar for mefroggy3

Modify the Payroll Program so that it uses a class to store and retrieve the employee's name, the hourly rate, and the number of hours worked. Use a constructor to initialize the employee information, and a method within that class to calculate the weekly pay. Once stop is entered as …

Member Avatar for mefroggy3
0
8K
Member Avatar for KimJack

I have been using Eclipse for quite some time to program. I have been told that NetBeans is a little better. The problem that I am having is that I can't figure out how to get a program into NetBeans for further programming. Can anyone explain these steps? Thanks,

Member Avatar for Ezzaral
0
122
Member Avatar for new_2_java

Hi all, I would like to create a date object and specify a value. I am facing some defficulties. Here's what I tried: [code] String dateString = "2005-04-29 00:00:00.0"; Date asOfDate = new Date(dateString); // this gives Illegal argument exception. [/code] I know that Date constructor with String as argument …

Member Avatar for new_2_java
0
128
Member Avatar for eleonora

Hello, I urgently need help, im trying to complete a class which will be able of multiple - clients but is not doing the required puprose. Can anyone be assistance of what is needed to add for handling the clients ?? Thanks in advance!! [CODE=java] import java.util.ArrayList; import java.util.concurrent.Semaphore; class …

Member Avatar for mzaiady
0
115
Member Avatar for regin

[B][I]hai dani members,can any one solve my question. how can i send and recive msg with pc and monitor under java plat form.[B][/B][/I][/B]

0
62
Member Avatar for a_iyer20

Hi All, I am using a String formatting which separates two strings using the "\t" (tab) character like below: String _str = "col1" + "\t" + "col2" + "\t" + "col3"; I get the following output: col1 col2 col3. this is fine. But because i have a horizontal restriction to …

Member Avatar for masijade
0
11K
Member Avatar for Pavan Kalyan V

Guys please please help me in this..... Write a program that inputs two DFS's D1,D2 and outputs whether L(D1) = L(D2) in Java... Thanks in Advance....!

Member Avatar for stultuske
0
90
Member Avatar for bob507

I'm an experienced programmer in a lot of areas, but I'd like to get into something I've never done before. What I want to do is write a response page for my website, which will let readers fill out a form (Autofill) and have the form come back to my …

Member Avatar for stultuske
0
75
Member Avatar for zoom2arun

Hi All Can anyone please guide me as to how to display same instance of an Applet in 2 browsers. The applet is a game, so only if same instance is shown in 2 browsers will the game be possible. Thanks in advance.

0
55

The End.