32,199 Topics

Member Avatar for
Member Avatar for Libanesaren

Hello I'm new to Java so all help appreciated I have already searched for similar threads but with no results helping me. I whant to save the data that I input in my Jtable to another Jtable. So the name address etc. that I input in the customer (kundGUI) class …

Member Avatar for mKorbel
0
208
Member Avatar for jennyb

Application coding Project Name: PhoneProblem Write a program which allows the user to input information to solve the following problem: “Sometimes it’s difficult to decide which phone to use – my mobile phone or my home phone. If I’ve got free minutes left on my mobile phone, then I use …

Member Avatar for stultuske
0
117
Member Avatar for Ashenvale

Problem: I'm having trouble in this part of my code [CODE] if (sexCode[ctr] == 'F') totalF++; else totalM++;[/CODE] I want my program to determine how many females and males in the list but whenever I execute my program I always get an output with an error that looks like this: …

Member Avatar for stultuske
0
133
Member Avatar for cpole

I am stuck on a homework problem. I think I am on the right track but am getting stuck on the if/else statement. I could be totally wrong though. Here is my assignment: Write a program that reads three integer inputs into variables. Display the input values in both the …

Member Avatar for JamesCherrill
0
172
Member Avatar for lethal.b

I am writing a program in j2me and i want to have a thread that starts when the program launches but wll sit doing nothing until the user presses ok. The thread will then go and carry out a task and then go idle again until the user presses ok …

Member Avatar for stultuske
0
99
Member Avatar for kinesaren

Hello I'm new to Java so all help appreciated I have already searched for similar threads but with no results helping me I want to make the text in JTextField to search for the data in the JTable and highlight it. Here is my customer class: [CODE] public class Kund …

Member Avatar for kinesaren
0
240
Member Avatar for sagarakaraavan

import java.io.*; class Chu { public static void main(String args[])throws Exception { char i; BufferedReader d=new BufferedReader(new InputStreamReader(System.in)); i=Char.parseChar(d.readLine()); System.out.println(i); } }

Member Avatar for NormR1
0
108
Member Avatar for abhishek_s_n

Hey, I am kinda stuck with the way I should structure my Project. Was going well till now, but now it seems I'll have to re-structure it. My project is Peer to Peer chat and File Sharing. It performs device discovery, chat and file transfer. I plan to implement it …

Member Avatar for JamesCherrill
0
164
Member Avatar for victabk

am having a problem, trying to upload a photo and this is the error that am getting The value for the useBean class attribute javazoom.upload.UploadBean is invalid; this is the code: JSP Syntax (Toggle Plain Text) <html> <body bgcolor="#333333"> <%@ page language="java" import="javazoom.upload.UploadBean*,java.util.*,java.io.*" %> <%@ page errorPage="ExceptionHandler.jsp" %> <% String …

Member Avatar for stultuske
0
198
Member Avatar for Mr.BunyRabit

Hey there I have a project im working on in netbeans6.9.1 I was having problems with all the bugs in that version so i went over to 7 But now all my generated code has a bug in wich messes up EVERYTING. is there something im missing? this is the …

Member Avatar for Mr.BunyRabit
0
155
Member Avatar for Alicito

I am trying to Build a JAR File of Interface Classes I am using Linux and working throughout the terminal I keep getting this error Syntax error , type parameters are only available if source level is 1.5 I searched many sites and most solutions were about java on windows …

Member Avatar for Alicito
0
254
Member Avatar for gourav1

hey! i want to give scjp this year and i have herbert schildt. i am reading it these days. but, my friends are saying that i should also take SCJP Sun Certified Programmer for Java 6 Exam 310-065 By Katherine Sierra, Bert Bates. what u say ? is it good …

Member Avatar for stultuske
0
142
Member Avatar for sha11e

I found a client/server code and I am getting this error: [QUOTE]java.net.SocketException: Software caused connection abort: recv failed[/QUOTE] Server code: [CODE] import java.net.*; import java.lang.*; import java.io.*; public class Server{ //port number should be more than 1024 public static final int PORT = 1025; public static void main( String args[]) …

Member Avatar for DavidKroukamp
0
315
Member Avatar for Tajinderpal

I am making a voice recognizer for my media player so as to stop and play the song through my voice .I tried to run a demo program given in the sphinx src through command prompt .I have also used apache ant to build sphinx pgm .when irun the demo …

Member Avatar for gthiruppathi
0
318
Member Avatar for vijaykavin10

Hi All I need to know about how can we convert a PDF file to HTML file using java....If any one is having a source code post it.Otherwise suggest me how to do the task... Thanks in Advance...:)

Member Avatar for peter_budo
0
162
Member Avatar for SuchANewb

So basically I have to write a simple calculator, that fine and I did it. The only problem is it can only operate on the 2 numbers which the user puts in. I want to make it like a real calculator that you carry around in your pocket. Example: "Calculate: …

Member Avatar for dheaven
0
359
Member Avatar for sirlink99

is there a way to remove the windows key effect on the local machine, so that my program doesn't minimize? I have tried an empty if statement, but that didn't do anything. Thanks for any help.

Member Avatar for dmanw100
0
90
Member Avatar for 03hasnam

I need to prevent entry to a car park system during public holidays, but instead of making more classes i was hoping it could be done within my existing method. my question is, is there such thing in java that already has public holiday dates predefined and can be used …

Member Avatar for dmanw100
0
2K
Member Avatar for wallet123

since i cant figure out the right thing to do.. i will just have to ask how to use array, what is its purpose and some examples! thank you guys

Member Avatar for dmanw100
0
124
Member Avatar for subone

[B]Hi guys Whenever I run this program, some weird characters like: ([/B] [COLOR="Green"][I@1f436f5[/COLOR] [B]) appear.[/B] [CODE]int[] list= new int[3]; Scanner scan = new Scanner(System.in); for(int i=0;i<list.length;i++){ System.out.println("Enter a number:"); list[i] += scan.nextInt(); } System.out.print(list);[/CODE] [B]How can I fix this? It is supposed to print the numbers entered from the user …

Member Avatar for Traps
0
8K
Member Avatar for rakeshk_87

Hi In my Project,Struts actions uses services where services are all interfaces. However i do not have the implementation of the services developed yet. From googling i understood that mocking would be a good idea, but mocking is only done in unit testing. I want to use these actions in …

0
53
Member Avatar for paranoidSandra

I'm trying to create 10 files with random names and random data. Each line in the file consists of two integers and represents one "record". Naming the files and generating random data didn't turn out very difficult. But for some reason I fail to recognize, while I create 100 records …

Member Avatar for paranoidSandra
0
154
Member Avatar for enterpise

i'm a beginner for coding at java . net now i got a problem with input the port plz see the code [CODE]package test; import java.net.*; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; public class UDPCliet { final int buffSize = 10001;//buff size final int TIMEOUT = 3000; final …

Member Avatar for enterpise
0
173
Member Avatar for Majestics

I have using following code over jdk 6.0 but after first round it doesnt work .... [code] if(table.getRowCount() -1 == table.getSelectedRow()) table.editCellValues(0,columnno); else table.editCellValues(table.getSelectedRow(),columnno); [/code] These lines are in mouse clicked method... Problem is when it reaches to end, and when fw button is pressed it jumps to another column.... …

Member Avatar for Majestics
0
216
Member Avatar for sarah49

i'm trying to write a code that masks red and blue channel from the image inputted.I have retrieved r,g,b values but however stuck up in proceeding further.I'm just a beginner.Can anyone help me in this please? [CODE] public class Green { public static void main(String args[]) throws IOException { BufferedImage …

Member Avatar for JamesCherrill
0
206
Member Avatar for wallet123

HI im a student and our professor asked us to convert a number into word: example: input= "1" output="one" i need to have numbers from 1-10,001 so my program will end up very long if i only use if else statement i know that there are other methods other than …

Member Avatar for peter_budo
0
75
Member Avatar for wallet123

guys i cant understand or even think of how i can start my program. I should input a number and convert it in words ..its so hard for me to understand how to do this because like what i have said im NEW here thank you so i need to …

Member Avatar for peter_budo
0
157
Member Avatar for kamboz200

help guys! i got an error stating within this line "unclose string literal" System.out.println("Balance at the Month " +count+ " is " +Balance+ " after making a payment of " +RepaymentPerMonth"); But i cant suss it out! please get back to me cheers!

Member Avatar for stultuske
0
239
Member Avatar for jot121

Hey so I have create a class FunWithIntegers. Add a method to the class called GreaterThanFive. Have that method accept an array of int. The method should allocate a new array that contains only the values from the first array that are greater than 5 and return it. [CODE] public …

Member Avatar for stultuske
0
184
Member Avatar for km2011

i want to make random numbers for x[row][col] that row =10 and col =10, but my problem is: how i fix random numbers of n[col]=5; here is my code: public static void main(String[] args){ double[][] x= new double[10][10]; int row,col; int n[]={0,0,0,0,0,0,0,0,0,0}; for(row=0; row<10; row++ ){ for(col=0; col<10; col++){ if( …

Member Avatar for km2011
0
2K

The End.