32,199 Topics

Member Avatar for
Member Avatar for amogh.max

i am using eclipse to write code that allows me to take a text file containing data (in my case it looks something like this :20 30 40 50 etc).i want to write the code in java and i am using eclipse as my IDE.i need the database to be …

Member Avatar for stultuske
0
221
Member Avatar for haider885

Here my code. package formsign; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.ItemEvent; import java.awt.event.ItemListener; import javax.swing.*; public class textF extends JFrame{ private JTextField fname; private JTextField lname; private JPasswordField pass; private JTextField country; private JTextField zip; private JTextField month; private JTextField day; private JTextField year; private JTextField phone; private …

Member Avatar for mKorbel
0
252
Member Avatar for godzab

Hello all, I am trying to take input from user using scanner. The problem is, when the loop starts, it skips taking input for the first iteration. Here is the code: import java.util.Scanner; public class TrigTriangles{ public static void main(String[] args){ int N; double a,b,c; double A,B,C; Scanner s = …

Member Avatar for noobz32
0
203
Member Avatar for SinzYPN

- Hi there. - I'm learning Distributed System and having an assignment of building a simple Game server using RESTful webservise. I'll use Java to build this server. And i need some help. - The game server provides the following services: + Register an account using for all game provided …

Member Avatar for Traevel
0
612
Member Avatar for 9tontruck

Hi, I have been searching out a lot of things to sove my problem but none of the solutions I found worked in my case :'( Here is what I am trying to do: 1. When the screen is off, my BroadCastReceiver detects it. 2. Once screen_off is detected, acquire …

0
205
Member Avatar for Matthew_10

Hello All, I am working on a project for class and I have everything work except for one little thing. I can compile there is no issues with running the program. However, when get prints the information I get a null as the value for the Mobile OS. I do …

Member Avatar for Slavi
0
238
Member Avatar for Brandon_7

I'm in AP Computer Science A* I was doing the following problem: int i = 1; while ( i < 10 ) { int j = 10; while ( j > i ) j--; i += j; } System.out.print(i); The output is 16, but can someone please explain why it …

Member Avatar for rubberman
0
200
Member Avatar for Trevor_5

what input statement is used in a float..` import java.util.Scanner; public class Program1 { public static void main(String[] args) { float Fahrenheit, celsius; Scanner input = new Scanner(System.in); System.out.print("Enter temperatue in Celsius"); celsius = input.nextDouble();<---- this line is giving a run time error. Fahrenheit= ((9 * celsius)/5 +32 ); System.out.println(celsius …

Member Avatar for JamesCherrill
0
151
Member Avatar for ClashClown

Hi I am a senior at high school. The school is making us create a product to present and I want to create a Java computer program for my product and present that. I want to make something cool and something that'll make you go "wow". I've narrowed my category …

Member Avatar for overwraith
0
180
Member Avatar for senskart
Member Avatar for JamesCherrill

[This article](http://lifehacker.com/the-top-programming-languages-ranked-by-job-demand-po-1601752302) will give you at least one good reason...

Member Avatar for <M/>
1
331
Member Avatar for Nation

I am developing a java application that uses a jtabe to allow the user to capture data. This data would be written to a text file later. The application is working fine. Good. However, I wanted to add a button such that when a user click this button, the application …

Member Avatar for JamesCherrill
0
561
Member Avatar for Sam_13

Hi i am new to java and i need help to write program for this problem Updating inventory A national chain is making room for new inventory, so it is selling existing inventory at discounted prices. All products in the store are on sale, but the markdown percentage varies depending …

Member Avatar for JamesCherrill
0
656
Member Avatar for surya55

Hi all, I understand the concept of Serialization but,want to know 1.when we use this in realtime? and 2.under what situations we can use this? I tried to google but cant find an satisfactory answer.Please help me out. Thanks in advance

Member Avatar for rubberman
0
978
Member Avatar for icanbeafrog

Hello, I'm writing a program that acts as a 'pocket' where the user is able to enter a kind of coin, such as, a quarter and the amount of quarters it has. I was assigned to do 3 different class, the Coin Class in which the coins and their values …

Member Avatar for JamesCherrill
0
161
Member Avatar for aya.dioses

I'm trying to play the sounds according to what's called on the arraylist but the sounds are playing randomly and it seems like the sounds are overlapping. what is wrong with my code and what code should i use or add? can anyone help me? here is my code: package …

Member Avatar for Traevel
0
653
Member Avatar for pravinkumar1

Is anyone can help me in getting the whole java technology details which like start to end of java in a manner such that i can refer to learn and know how much java i got till now. please help me.

Member Avatar for JamesCherrill
0
167
Member Avatar for ANANTBORLE

Sir please help me to develope Support Vector Machine for plant disease classification in java??

Member Avatar for JamesCherrill
0
77
Member Avatar for jalpesh_007

hello, I am working on networking project. I have made client server program through socket program. Now, i don't know which library is used to detect hardware i.e. attached on machine. mean how can i detect keyboard is attached to my pc or not? mean how can i detect mouse …

Member Avatar for JamesCherrill
0
257
Member Avatar for jalpesh_007

Hello, I am making project of Face detection from image. I have read OpenCV library for it, but exactly i can't get how to find multiple face from image. i had group photos of my friends, i want find face of each person of the photo like tagging in facebook …

Member Avatar for rubberman
0
212
Member Avatar for robert.swaine1

Hello everybody, could someone please urgent help me with this assignment question? I just need some tips on why my prompt dialog is not working correctly. The script is below after the assignment question... Finish the coding of the class LightController by completing the public instance method runLight(). This method …

Member Avatar for stultuske
0
250
Member Avatar for sky_B
Member Avatar for dodo11
0
159
Member Avatar for dany12

I have only one week to learn java at a intermediate level. What books tutorials you recomend? Another thing I have to learn is java Algoritms and Data structures. Can some one show me how? I have a little bit understanding of arrays if while for switch classes try catch …

Member Avatar for stultuske
0
240
Member Avatar for Jack_11

I'm making a program that will let you access a system via encrypted code from a USB. But I can't seem to figure out how I would go about making the user login to the computer via USB. I'll add the code in the code so far. /* This is …

Member Avatar for happygeek
0
423
Member Avatar for divinity02

hi anyone I am doing a car insurance program in java and i need to understand this error. the program goes like this. it depend on the driver's age and how many accidents he had. from 1 to 5 it have difference charges with additional surcharge an for 6 you …

Member Avatar for hericles
0
182
Member Avatar for erum

I am new to bootstrap framework..I need just small loader WITH bootstrap .. and Just call that small loader with javascript.any help ??

Member Avatar for pixelsoul
0
95
Member Avatar for newbie14

I have the following snippet of codes first each of the thread is a socket waitign for connection where its gets a connection does all he necessary. Thereafter another section in the run it does this //run a new db connection and does a select where all those have not …

Member Avatar for rubberman
0
202
Member Avatar for london-G

Hi Guys, I managed to fill the jtable with the table from the database. Now I want to add specific rows from the database table into the jtable. So I have a textfield and a sql statement: So "Select * from tbl where name =?" I want to add all …

Member Avatar for london-G
0
210
Member Avatar for london-G

Hello, I am trying to connect to a hosted database on netbeans(java). So far I have the following: Connection con = null; Properties conProps = new Properties(); conProps.setProperty("user", "user"); conProps.setProperty("password", "password"); try { con = DriverManager.getConnection("jdbc:mysql://host:3306/dbname", conProps); String sql = ("SELECT * from products"); st = (com.mysql.jdbc.PreparedStatement) con.prepareStatement(sql); st.executeQuery(); rs …

Member Avatar for london-G
0
374
Member Avatar for ~s.o.s~

***Please don't post "spam" or "Thank you" posts in this thread since this is meant to be used as a guide for all beginners and I am sure we would like it to be on topic. I hope you understand this.*** **» Introduction to Java «** To start off, [Java](http://en.wikipedia.org/wiki/Java_(programming_language)) …

Member Avatar for ~s.o.s~
46
6K

The End.