32,199 Topics

Member Avatar for
Member Avatar for loveu

A java program that accepts one string as input Example Input: Bleach,22,13,TiteKubo Output: Name of manga: Bleach No. of copies: 22 Book borrowed: 13 Author: TiteKubo

Member Avatar for javaAddict
0
94
Member Avatar for dresposure

Hello everybody, I am Pinak. I want to build an apllication regarding encryption. However, I am confused. [B][COLOR="Green"]Should I use Applet or Swing ????? [/COLOR][/B] Can you tell me what is the difference between the two??????:)

Member Avatar for extemer
0
159
Member Avatar for churva_churva

/*A personal phone directory contains room for list names and phone number for 30 people. Assign names and phone numbers for the first 10 people. Prompt the user for a name, and if the name is found in the list,display the corresponding phone number.If the name is not found in …

Member Avatar for javaAddict
0
938
Member Avatar for churva_churva

This program should have a menu:it can use a switch method ... MENU: [1]=ACCEPT; [2]=DISPLAY THE SMALLEST; [3]=DISPLAY THE LARGEST; [4]=DISPLAY THE SUM; [5]=DISPLAY ALL; [6]=EXIT; Could someone help me to this problem,and this program that i do i still encountering some errors..please do try to help me.. import java.util.*; …

Member Avatar for churva_churva
0
230
Member Avatar for churva_churva

----jGRASP exec: javac -g C:\Documents and Settings\Home\Desktop\java programs\List3.java ---- at: Sep 11, 2010 9:15:23 PM ----jGRASP wedge: pid for wedge is 3808. ----jGRASP wedge2: pid for wedge2 is 3800. ----jGRASP wedge2: CLASSPATH is ".;;.;C:\Program Files\Java\jre6\lib\ext\QTJava.zip;C:\Program Files\jgrasp\extensions\classes". ----jGRASP wedge2: working directory is [C:\Documents and Settings\Home\Desktop\java programs] platform id is 2. ----jGRASP …

Member Avatar for javaAddict
-1
240
Member Avatar for SaranyaKrishnan

I m looking for a java program that converts a video into frames for my project. Ppl say its available in the net. I searched but in vain :(

Member Avatar for javaAddict
0
60
Member Avatar for erogol

Dear developers, I decided to code a little music player to get some experience with JAva, but I do not have any idea how to code it in Java. Is there any API or Library to be used for such project or any other suggestions? Thanks,

Member Avatar for erogol
0
141
Member Avatar for SaranyaKrishnan

When i access a user-defined java class in matlab, it says >> t=Areas ??? Undefined function or variable 'Areas'. Areas is my classname in java. I dynamically added the path of the directory containing Areas.class file Thank you in advance

Member Avatar for SaranyaKrishnan
0
173
Member Avatar for Chaster

Hi all, I have a JTree (JXTreeTable actually, but anyway, it should be similar). I use setShowsRootHandles(true), but the handles are not displayed. Do you know what may cause the problem? My current look and feel settings support these kinds of things. Thanks in advance.

0
67
Member Avatar for purijatin

Hello For example if i want to implement my own protocol, i can proceed by implementing the extra features on UDP on the application it self and thus achieving my task. But what if i want to implement it on the OS level just like TCP or any other protocol, …

Member Avatar for masijade
0
114
Member Avatar for churva_churva

/** * @(#)List2.java * * * @author * @version 1.00 2010/8/26 */ import java.util.*; public class List2 { private int [] arr; private final int MAX = 10; public List2() { //allocate memory to arr arr = new int[MAX]; } //accept 10 numbers public void accept(){ Scanner console = new …

Member Avatar for NormR1
0
293
Member Avatar for extemer

guys i trying to run simple applet program but getting the same error that "START:APPLET NOT INTALIZIED".i save both of files in the same folder "bin" but yet the same error.can any one help me.here is my code[ [code]import java.applet.*; import java.awt.*; public class move extends Applet{ int x_pos = …

Member Avatar for NormR1
0
134
Member Avatar for Sunshineserene

Hi, I have this program that part of it is hard coded. Instead of hard coding it, I need to do a file read instead. Meaning, the hard coded part must be changed to reading the info I need from a txt file. May I know how to do that? …

Member Avatar for NormR1
0
481
Member Avatar for toomuchfreetime

Hey I'm trying to get a splash screen going for my application but having a problem in finding the image once the splash screen is called it returns a null. I'm trying to use the java standard 6 way where the splash screen is displayed before the jvm is started …

Member Avatar for rahul4/69
0
472
Member Avatar for steveh000

Hi I wonder if someone could point me in the right direction, I have two class`s in my program one is a search thread the other is the swing gui. I want to send updates and info from the thread to my gui but have not got any idea on …

Member Avatar for steveh000
0
102
Member Avatar for fr0styh3rb

Hello all, can someone take a look at my inventory program code for part 3 of the program mod. The program outputs, but I am still experiencing a few errors. If someone could take a look and let me know what to change I would greatly appreciate it. This is …

Member Avatar for tong1
0
148
Member Avatar for the b

I'm making a rock paper scissors game, and in this game there is a nested for loop so that the players challenge each other, the outer loop is supposed to loop through all the players starting with player 1, while the inner loop starts at the last player and moves …

Member Avatar for masijade
0
230
Member Avatar for skyzer

Hi, i would be grateful for a solution or some explaining. My example is that i have a controlled spaceship. here is userinterface: 3 - planet from which is starts, 0.5 and 0.5 the speed of the ship [CODE=java]public void handleBtnLaunchFPSpaceShip() { this.controller.launchFPSpaceShip(3, 0.5, 0.5); }[/CODE] my controller class: [CODE=java]public …

Member Avatar for skyzer
0
228
Member Avatar for boiishuvo

Hi, I wrote a simple program that should display the text (with specific fonts), one color background and drawing. I tried to run the program but it didn't work. Any suggestions? What is the method of Graphics that allow you to draw within the program? eg java.awt.Graphics but I don't …

Member Avatar for tong1
0
147
Member Avatar for lanhlung696

Please help me. My project to display like window explore from any client's ip address. If i used command line, i can set ip & post listen for server by code: start java TestWEImplServer -ORBInitialPort 1050 -ORBInitialHost localhost & java TestWEImplClient -ORBInitialPort 1050 -ORBInitialHost localhost but went i use eclipse …

Member Avatar for lanhlung696
0
174
Member Avatar for D boss

hi guys, i am working on a new java program, the program consists of a ball, bouncing around the applet, i have created button to control the ball, one to stop the ball bouncing, another to resume the ball boucing and another to reverse the direction of the ball bouncing, …

Member Avatar for jadhav vijay
0
2K
Member Avatar for the_future21

I HAVE TO WRITE A [B][U][COLOR=Red]STOP AND WAIT [/COLOR] [/U] [/B] ARQ FOR MY NETWORKING CLASS I WAS WONDERING IF SOMEONE COULD GIVE ME SOME HELP I HAVE SOME CODE ALREADY IF ANY ONE WOULD LIKE TO SEE IT. ANY HELP WOULD BE REALLY NICE. I REALLY SUCK AND PROGRAMMING …

Member Avatar for nishanthini
-1
79
Member Avatar for BboyRodimus

I got stuck at this error: [B]cannot find symbol symbol: variable BankAddress location: class Bank bankAddress = BankAddress;[/B] [COLOR="Red"]<------pointing at BankAddress;[/COLOR] I'm trying to instantiate an object of Address, calling the constructor of the Address class to create an object of Address. I'll post both classes, Bank and Address [B]Address …

Member Avatar for coil
0
142
Member Avatar for vishalonne

Dear All I am tring to do 1 simple job but some where I am missing something I designed 1 GUI in Netbeans 3 jTextFields, 2 jButtons (design attached) Step 1-> Input any number in 1st text field 2 Step 2-> Input any number in 2nd text field 2 Step …

Member Avatar for vishalonne
0
90
Member Avatar for cac186

Hi I'm trying modify an application to read in text files and collect pieces of data from them to use as input for an application. The data I need to collect from the individual files include doubles, int, and strings of varying lengths depending upon individual text files. There is …

Member Avatar for NormR1
0
186
Member Avatar for glenak

This isn't a problem, just a curious question. I'm using the password text field in my gui and basically, this: [CODE] String pin = new String(passwordField.getPassword()); Person p = new Person(); p.setPassword(Integer.parseInt(pin)); [/CODE] leads to a number format error, despite that I didn't enter a text. But this: [CODE] String …

Member Avatar for NormR1
0
126
Member Avatar for djbhoco

I need help with this Java program for school. I have to add loops so that each loan will loop and show the payment made, the int payment made, and the loan balance for each month of the entire loan. There are three different loans, 7 year, 15 year, and …

Member Avatar for coil
0
474
Member Avatar for glenak

Hi, let's say I have a program in my external hard drive and there's a code in my app that references a picture or a file in that hard drive, how do I make it so that when I take my external hard drive to another computer, even though the …

Member Avatar for glenak
0
61
Member Avatar for gupneha

I have a project on sports Club Management. In that, I am providing add, delete, update and search facility. Add command is working simply by : `String qry="Insert into sport values('"+s1+"')"`; `smt.executeUpdate(qry);` This is just an example where I took only s1. But in delete, I wrote: String qry="Delete from …

Member Avatar for Dupron
0
193
Member Avatar for rich345

hey im trying to make a program that if you use a scanner class you can type A and then the switch statment will change that to something else. altho i just realised that i cant do this as the way i would read a letter into a scanner would …

Member Avatar for Dupron
0
3K

The End.