35,618 Topics

Member Avatar for
Member Avatar for Ron2794

why the following things cannot be : 1.why i cannot extend the non static variable from static method or something ? 2.why i cannot use a variable directly in the class as : [ICODE] class abc{ int i=4; } class xyz extends abc{ int j=7; i=9; /*this should be valid …

Member Avatar for masijade
0
157
Member Avatar for Ron2794
Member Avatar for masijade
0
93
Member Avatar for Transcendent

I don't know how to call this method to another program. [CODE]public class ForLoopTest { public static void main ( String [] args) { int product = 1; for ( int i = 1; i <= 10; i++ ) { product *= i; } System.out.printf(" %d ", product); } }[/CODE]

Member Avatar for jon.kiparsky
0
130
Member Avatar for nickelsunshine

Can anyone help! have 12 hours before must turn in this project and still getting errors, but got htem down to one. Here it is: F:\CPT244\Programs\Tests\Chapter 13 & 14 Test\Lab 1\FlightListMain.java:54: cannot find symbol symbol : constructor Flight(java.lang.String,java.lang.String) location: class Flight Flight target = new Flight("Detroit, MI", "Miami, FL"); ^ …

Member Avatar for seanbp
0
130
Member Avatar for oggiemc

Hi all, Im getting the following error when i try running the attached applet: java.security.AccessControlException: access denied (java.net.SocketPermission localhost:8080 connect,resolve) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkConnect(Unknown Source) at sun.plugin2.applet.Applet2SecurityManager.checkConnect(Unknown Source) at sun.net.[url]www.http.HttpClient.openServer(Unknown[/url] Source) at sun.net.www.http.HttpClient.<init>(Unknown Source) at sun.net.[url]www.http.HttpClient.New(Unknown[/url] Source) at sun.net.[url]www.http.HttpClient.New(Unknown[/url] Source) at sun.net.[url]www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown[/url] Source) …

Member Avatar for seanbp
0
252
Member Avatar for Oblivious21

Hey guys i have a weird problem but its probably something small. i have a hang man program that has no errors. i am using netbeans to compile my project but when i run it it nothing come up or prints out. i don't know what im doing wrong because …

Member Avatar for Oblivious21
0
197
Member Avatar for ProgrammerAl

I can't come up with logic for certain actionListeners for my program, mainly the ones that will run the game. I want to go through my actionListeners one by one. First actionListener I want to work with is the one that will be setting the order of pictures that the …

Member Avatar for ProgrammerAl
0
88
Member Avatar for doom2100

hi guys i am new to java and i barly learning i got some slides that teachs java from the start i started good at declaring values like ingers, strings, etc.. and made simple programs that counts sum of two numbers and the avarge and now i am stuck at …

Member Avatar for jon.kiparsky
0
284
Member Avatar for nickelsunshine

I am having a problem getting this program to run. I have tried all I can but it keeps telling me It can not find the IndexList and it is here. You see it. Maybe part of the code is missing something I am not sure. Help Please Due in …

Member Avatar for cale.macdonald
0
96
Member Avatar for oggiemc

Hi guys, For some reason, when i click on the Java forum i get logged out but when i click back on say C++ it says im logged back in..But when i try to start a thread on the C++ forum it asks me to log in?!?!When i try to …

Member Avatar for Dani
0
161
Member Avatar for ronnieaka

hi, i'm writing a snake game and so far i've gotten nowhere, not even to moving the hashes i'm calling snake, and that's what i'm gonna discuss now i know i don't clearly have an understanding of threading for animation but before this i've done lotsa stuff like bouncing frames …

Member Avatar for quuba
0
324
Member Avatar for SeanC

I need to generate a JInternalFrame every time the user presses a button. Is it possible to use the netbeans GUI builder to do so, since it is created dynamically, or do I need to code the internal frame's UI layout manually? If so, how can it be done with …

Member Avatar for SeanC
0
93
Member Avatar for help!

how do i display a histogram that is horizontal to vertical without using arrays. from: 0-29 **** 30-39 ** 40-69 * to: where the stars * in the catergory (0-29,30-39,40-69...) goes downwards not across the screen:

Member Avatar for jon.kiparsky
0
130
Member Avatar for Java_90

My whole program works completely fine ~400 lines of code including comments, but I have this at the bottom of my code. This is the last bit of code in my java program... Is this okay to have, if not what should I do instead. [CODE] private static void End() …

Member Avatar for quuba
0
92
Member Avatar for ajijacobm

hi friends, i'm doing a school project on face recognition. I need a code for face recognition in java..Anybody please help me or guide me to the above mentioned codes..

0
80
Member Avatar for Dragon55544

Hi new to the forum, so go easy :) Im very new to Java and im a little stuck... I have to create a program which uses classes and objects, all of the objects need to be stored in 1 array. So, i have a super class called Student then …

Member Avatar for quuba
0
86
Member Avatar for jalpesh_007

I have implemented RSA using java as shown below. mport java.math.BigInteger; import java.util.Random; class SimpleRSA { public static BigInteger p, q, N, v, k, d; public static void main(String[] args) { // p & q are prime numbers Random myRandom = new Random(0); p = BigInteger.probablePrime(512, myRandom); q = BigInteger.probablePrime(512, …

0
83
Member Avatar for prem2

Dear team, I want to implement jabber server and jabber client . Can any one provide the jabber tutorial or some other links about the jabber . Thank you, With Regards, Prem

0
55
Member Avatar for saifjunaid

hi im new to java...i want to add data in database from html form and applet plz help me..

Member Avatar for masijade
0
74
Member Avatar for arvindikchari

Hello, I am in the process of creating a software that automates submission of articles to article directories. As part of data entry work, all fields in the submission form (to submit article to article directory) are being noted, as also the form action and form-parameters. What I want to …

Member Avatar for Eric Cute
0
93
Member Avatar for minimi

[url]http://img195.imageshack.us/img195/6971/treeqg.jpg[/url] This is my tree.. one on the top is before and one on the bottom is after the change has been made.. did I do this correctly? Thank you in advance!

Member Avatar for hertze_bogdan
0
118
Member Avatar for PatrickE69

this is my final project for my java class. This is what im supposed to do::::: Write a program that can be used for reserving airline seats. You can use three algorithm building blocks (Sequence, Selection, and Iteration). The airline has 15 rows, with 6 seats in each row. Rows …

Member Avatar for hertze_bogdan
0
755
Member Avatar for ITjulz

Write a java program that computes of the long distance call. The following cost of the call is determined according to the following rate schedule. a. Any call started between 8:00 am and 6:00pm Monday through Friday is billed of a rate of $ 0.40 per minute. b. Any call …

Member Avatar for Random_Integer
0
270
Member Avatar for Aeonn

SO, I have been working on this Java program that is to emulate an ATM. I am having an issue with the program calling my functions. The code currently does not run. The user inputs 1,2, or 3 and the code breaks because I am assuming that the constructor is …

Member Avatar for Eric Cute
0
2K
Member Avatar for adr1817

Hi, I'm new to java and I have a homework. Below is my working code, however, I would like to have a loop in order to return to the menu for user's input. package mortgagecalc_cr2; [code] import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; /** * * @author adr1817 */ public class …

Member Avatar for Eric Cute
0
246
Member Avatar for seanbp

My application freezes randomly with no error output. I've been beating my head over it's code and don't want to continue working on it until this problem is resolved. I'm thinking it's a synchronization problem. I've attached the source code. Any help would be greatly appreciated.

Member Avatar for seanbp
0
6K
Member Avatar for coding101

I have an arraylist that hold an array of object each which contain a "name". how can I sort the arraylist by name alpabetically?

Member Avatar for Eric Cute
0
88
Member Avatar for ITjulz

how to input time on JOptionPane on java?im sorry to bother you guys because im just a rokee student plz.help me..thanks...asap.

Member Avatar for Eric Cute
0
57
Member Avatar for samccarn

I have a project for my class in which I'm given 3 pictures, and have to do something "interesting" with them, I've decided to make a maze, one picture will be the background/the maze itself, one will at the exit, kind of like a mouse/cheese sort of thing, and what …

0
170
Member Avatar for suger

Hi guys Can anyone explain in logic how do mousemotion events drag something (eg. a shape) to move, in a pseudo code? Thanks a lot

0
64

The End.