32,204 Topics

Member Avatar for
Member Avatar for gyle0123

I really want to have an example of of this program in java but i cant find it in here.. >..pls response ASAP.. >thnx

Member Avatar for peter_budo
-1
100
Member Avatar for Arthurmilo
Member Avatar for parthiban

Hi all , I tried one simple animation in Swing . Here's what the program has to do : when a button called "play" is clicked a circle should be moved from upper left corner down to the lower right corner. [code=java] import javax.swing.*; import java.awt.event.*; import java.awt.*; public class …

Member Avatar for nschessnerd
0
98
Member Avatar for wegdan

i am working on a cod of (attaxx game),and i have a problem with the buttons i can determine the co-ordinates (x,y) of the button and i want to change its background color but i do not have a reference of the jbutton object it self.is there is any way …

Member Avatar for Ezzaral
0
262
Member Avatar for bc030400412

> Write a function that accepts an array of integers and returns the second largest integer in the array. Return -1 if there is no second largest. > The signature of the function is public class bc { public static void main(String[] args){ } int f(int[ ] a) { } …

Member Avatar for Ezzaral
0
92
Member Avatar for ttamilvanan81

Hai everyone, I need to find the Latitude and Longitude values for any one of the Particular location from the Google Maps, using pure java class. I know, it's done by using javascript, but i need to use pure java class not javascript. If we provide full address of the …

Member Avatar for peter_budo
0
96
Member Avatar for omi.jain
Member Avatar for jamminjelly

Says grade isn't initializing import java.util.*; public class Test { static Scanner console = new Scanner(System.in); public static void main(String[] args) { char grade; switch (56 / 10) { case 0: case 1: case 2: case 3: case 4: case 5: grade = 'F'; break; case 6: grade = 'D'; …

Member Avatar for jamminjelly
0
92
Member Avatar for cat8882

Okay so I'm supposed to read in grades from a file add them together and get the average the letter grade the minimum grade and the maximum...no setting variables to the read in...and the sentinel is -1 at the end of the sequence...I'm a bet messed up...this is what i …

Member Avatar for Ezzaral
0
102
Member Avatar for MariaA

Hi everyone, I am new to java. I have a question? How can I store in to an array the values that the user enter, so later I can compare the two sets of array that the user enter. This is what I have: System.out.print("This program is going to find …

Member Avatar for ithelp
0
79
Member Avatar for ceyesuma

How can I .getText(long) ????? I can not figure out how to get a string from a GUI and turn a String into a long .

Member Avatar for ceyesuma
0
108
Member Avatar for himanjim

[B]I'm new to java servlets ...I installed Sun java SDK which acts as an server for running servlets.I spents many hours first just to compile servlets and generate the class files but now I don't have any idea how to run servlets on SDK. I tried a lot on Apache …

Member Avatar for himanjim
0
101
Member Avatar for preetham.saroja

hai, Its very urgent.can somebody tell m,how to add two textboxes and then display the result in the third textbox ,using keypress -in javascript.... regards....

Member Avatar for preetham.saroja
0
166
Member Avatar for Rashul

/*This is a what I've written so far- see below.*/ /*The program is to ask a user to insert values into array, print those values showing both index # and corresponding value, return average, min, change value of 1 array element, delete 1 element, compact the array. ALL these MUST …

Member Avatar for Ezzaral
0
2K
Member Avatar for mariejt

Hello Everyone, I feel like I'm going around in circles! I can't figure out why by JButtons won't perform their assigned functionality. I have a first, previous, next, last, and save button. I've created actionListeners and actionEvents for all butons, but they still produce nothing. Any insight is extremely appreciated!!!! …

Member Avatar for mariejt
0
115
Member Avatar for push

hellow friends, how can i get server port number by using java. please give me exampls codes for this program.

Member Avatar for jwenting
0
51
Member Avatar for iCez

Here it goes, we were told to make a Multiplication thingy that the user can [B]Input[/B] something like [I]5x5[/I] and then the [B]output[/B] will be the [I]answer[/I]. We were not taught on how to do it yet so I don't have any idea. I'm just hoping that someone can teach …

Member Avatar for Ezzaral
0
97
Member Avatar for w32.sysfile

i face a problem here.. i am creating a compiler for java, the compilation part is done,and now i have a problem in the running the class compiled.. i use the runtime.getruntime().exec() method to run the class.. and what happen is, for example, i have a simple java file like …

Member Avatar for lookof2day
0
153
Member Avatar for piers

okay I have been working on a little project of my own for a while. At the moment it prints out the chapters read and once 100% of the chapters read is greater than 100 it shows on the next line of my code the number of times the book …

Member Avatar for Ezzaral
0
92
Member Avatar for parthiban

Hi all, I learned that "local static variable" with in a function is not allowed in JAVA as in C++. I guess it violates the rule of "static" as it's should not depend on objects but is there any alternative way avaiable to accomplish that ? (i.e scope is restricted …

Member Avatar for parthiban
0
366
Member Avatar for DeadJustice

I didn't think I'd need help again, but I'm pretty sure its not as bad as last time. I'm trying to increment the time in Time2.class, and that compiled. The problem is I can't make a class to use it as per the assignment, and that's because I used void …

Member Avatar for DeadJustice
0
2K
Member Avatar for ceyesuma
Member Avatar for hidash_in

[COLOR="blue[B]"]hi all, i need a help in jsp. i want to open a word file in an application using jsp. and it should not in browsers. just the word application only should open. if u have any coding for this means pls send it. very urgent .hurry up! pls.. [/COLOR][/B]

Member Avatar for jwenting
0
132
Member Avatar for balagangadharm

hi canyone help in how to write code to search in java.just like search button in google.

Member Avatar for jwenting
0
89
Member Avatar for degamer106

I'm trying to get this ISBN checker to work. I've used the formula from this [URL="http://mathworld.wolfram.com/ISBN.html"]site[/URL] and also this [URL="http://en.wikipedia.org/wiki/International_Standard_Book_Number"]site[/URL] and it seems to work fine [B]except[/B] for the ISBN of my Java book. When I compute my book's ISBN (0131496980), it is apparently invalid. I have tried the other …

Member Avatar for jwenting
0
184
Member Avatar for kedarkhedkar

I have a query about ISBN. Some books have one ISBN, SOME have two. Is it appropriate to use ISBN AS a primary key for a book table ( as I have seen it in one book). What is ISBN basically. What can be the appropriate primary key for book …

Member Avatar for masijade
0
112
Member Avatar for pparker

Hi, I'm going to begin school for CS in a couple of months, and am trying to get started with some of the material on my own. I need to learn some Java; I've done a bit of C++ in the past. The prof sent me an email saying at …

Member Avatar for jwenting
0
118
Member Avatar for nnobakht

Hey guys, i have a linkedlist called CDArtist and one called CDTitle. i have all the functions and classes written and working except one which i have no idea how to. I need to be able to delete a CD by the name of the title or artist but this …

Member Avatar for Ezzaral
0
185
Member Avatar for Talam

Hi, we are planning to implement a software, which can read the information about all the Nodes connected in its newtwork, as soon as this software is installed in networked PC. This could be done with C/C++ system level programming. But we are thinking to do it in Java, J2EE. …

0
38
Member Avatar for swarnamalya

The End.