32,199 Topics

Member Avatar for
Member Avatar for rahulKRISHNAN

Can any one helps me in getting the code for hub finder algorithms and hub rank

0
40
Member Avatar for pradeepsimhanp

Hi, I have a doubt that why string is immutable in c#/java? why not that case with primitive types such as int,float etc..? can you please let me know what the reason behind this design? Thanks, Pradeep

Member Avatar for kvprajapati
0
198
Member Avatar for anony

Hello everyone I was just wondering how these online train ticket booking sites in particular work. Do they link to other sites to check the availability of seats?? I am talking about private travel agency websites as i came across some online train ticket booking site which had bus, flight …

0
71
Member Avatar for JellyTurf

this is my java code that i'm experimenting with right now. trying to learn graphics. [CODE]import java.applet.*; import java.awt.*; public class game extends Applet { Image dbz; public void init() { Font newFont = new Font("TimesRoman", Font.BOLD + Font.ITALIC, 50); setFont(newFont); dbz = getImage(getCodeBase(), "dbz.jpeg"); } public void paint(Graphics g) …

Member Avatar for ProgrammerAl
0
262
Member Avatar for samccarn

Hey, I'm making a maze game, where the user is a picture I've got, and they have to move the picture using the arrow keys to get to the end of the maze. How do i make a picture into a character like that? Also, how do I assign the …

Member Avatar for packetpirate
0
79
Member Avatar for serph09

1) Is this right? In java.awt there is a class named Point which represents a point in 2-D space. It has methods getX() and getY(). Below is the definition of a Points class which has a Point[] array as an instance variable. You are to write a method getMaxX() that …

Member Avatar for Slimmy
0
109
Member Avatar for LianaN

Hi! I would like to make a JFrame that will play a role of a toolbar. It can be dragged and dropped within a specified area. So, I don't know how to specify the area for dragging and dropping. Could anybody help me? Thanks!

Member Avatar for LianaN
0
99
Member Avatar for ll_jesse_ll

Hey guys I was hoping someone could help me here. I had to make a Tetris game using eclipse for my intro to Java programming class. I got it all done, but i would like to play the game without having to run it through eclipse. For example if i …

Member Avatar for ll_jesse_ll
0
118
Member Avatar for baldwindc

I'm looking for a starting point on this. Can someone point me in the right direction? I want to allow a user to create a new class object that will just store data. My class is data and my type is "flight" so: [code=java] Data flight1 = new Data("A string", …

Member Avatar for baldwindc
0
355
Member Avatar for Roy1287

Quick question From main thread [CODE]double[] ascore; int i; imax=high.highestScore(ascore[],i); [/CODE] From method highestScore [CODE] public class highestScore { // This method checks which number is higher. public static double highestScore(double[] score,int arraySize) { int index; double maxScore=0; for (index=0; index<arraySize; index++) { if (maxScore < score [index]) maxScore= score[index]; …

Member Avatar for Roy1287
0
129
Member Avatar for Slyvr

I'm fairly new to java, but I'm sure I've done this before and now it's not working right. What am I forgetting here? LeftPanel class [CODE]Inventory inventory; JTextField txtMoney = new JFormattedTextField([COLOR="Red"]inventory.getInvWallet()[/COLOR]);[/CODE] Inventory class [CODE] public class Inventory { public int invId = 0; public int invPrice = 0; public …

Member Avatar for Slyvr
0
102
Member Avatar for nickelsunshine

I am at the end of my quarter and have two programs to write and need help. I dont even know where to begin. I have decided to change my major to something else, but I dont want to fail this class and hurt my GPA. I have a programming …

Member Avatar for cale.macdonald
0
460
Member Avatar for Snoozey

I keep getting this error on my else. Anyone have any ideas? I don't quit understand this error as the the if works just fine, and it is same thing. it just sends it to a different array. [code] catch ( NoSuchElementException e ) //Error { System.err.println( "Invalid input62" ); …

Member Avatar for Snoozey
0
138
Member Avatar for Dean_Grobler

Helew! I just wana know if someone might have an idea of how I can go about doing this: So attached I have a little example I whiped up. Say you have 3 buttons, button1, button2, button3. What I wana do, is when you click [B]button1[/B], it will magicly turn …

Member Avatar for javaAddict
0
111
Member Avatar for Lazairus

Hello This is my first post, could you help me on this point, I have a jscroll pane. the problem is I want to move an icon image that is attached to jpanel. frame > jpanel > image> frame > jscrollpane. Goal : move image on the Jpanel. Is this …

Member Avatar for quuba
0
84
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
156
Member Avatar for Ron2794
Member Avatar for masijade
0
90
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
126
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
251
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
196
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
87
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
280
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
95
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
160
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
320
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
92
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
129
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
91
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
79

The End.