36,051 Topics

Member Avatar for
Member Avatar for Pravinrasal

how todesign automatic grading system online using java i want to create one web application which creates online grading system for the students. which displays their grades,marks and ranking ...

Member Avatar for Majestics
0
161
Member Avatar for andersonelnino

discuss how java programming languagues differs from procedurals programming such as pascal and c. 1.classes 2.objects 3.attributes 4.methods 5.pirvate,protected,public 6.encapsulation 7.interface 8.inheritance 9.polymorphism

Member Avatar for JeffGrigg
-1
311
Member Avatar for iamcreasy

This simple code is showing the following error. [CODE]import java.io.IOException; import java.net.*; public class Server { public static void main(String[] args) throws IOException { DatagramSocket ds = new DatagramSocket(999, InetAddress.getByName("192.168.1.102")); ds.send(new DatagramPacket(new byte[10], 10)); } }[/CODE] Error: [CODE]Exception in thread "main" java.net.BindException: Cannot assign requested address: Cannot bind at java.net.PlainDatagramSocketImpl.bind0(Native …

Member Avatar for iamcreasy
0
360
Member Avatar for raghujosh

What would be a regex pattern for the following ' and ® in Java. I have tried the following but have not been successful 1.&#[0-1][0-1][0-1] 2.&#\d\d

Member Avatar for Ezzaral
0
67
Member Avatar for anand01

Hi all , pls suggest me some good tutorials to learn complete j2ee .. Thanks in advance

Member Avatar for Ezzaral
0
85
Member Avatar for andersonelnino

DEFINITION OF DATA REQUIREMENTS Produce an itemised consigment note for each customer including -dimension,weight and price per parcel. -total weight and price consigment -number of parcels RESIDENT DATA -up to 2kg-£7.50 -up to 4kg-£8.00 -up to 10kg-£8.55 -up to 12kg-£9.10 -up to 14kg-£9.70 -up to 16kg-£10.35 -for each extra 2kg,up …

Member Avatar for sirlink99
0
120
Member Avatar for shan123456

Can anyone please help me! Very stuck on an assignment i need to code a java applet so that it counts the lengths of words for example i am a man would produce the output 2 - one letter words 1 - two letter word and 1 - three letter …

Member Avatar for sirlink99
0
184
Member Avatar for andersonelnino

Where weight is the person’s weight in grams and height is their height in centimeters. If the result of this calculation is less that 20, then the person is medically underweight. If the result is greater than 30 then the person is medically overweight. Write a program to calculate whether …

Member Avatar for peter_budo
0
185
Member Avatar for rotten69

Hello everyone, I have a book called "Java Genesis" and it has some files such as packages, projects and hints to enhance learning. So, I have set up a file structure in Eclipse and it shows that there are errors and warnings. When I tried running a Java Application using …

Member Avatar for rotten69
0
10K
Member Avatar for sirlink99

I am creating a program that will simulate a fish tank (got it off of google) and when I try to get the image using [CODE]mClownImage = getToolkit().getImage("Fishes/mClown.gif");[/CODE] the getToolkit() part gives me an error. it suggests that I make a method called that. I have imported java.awt.Container; which contains …

Member Avatar for NormR1
0
73
Member Avatar for adanaz

Hello I've made a program using JCreator. It was working fine and all of a sudden it won't run anymore. I get this message: [CODE] --------------------Configuration: <Default>-------------------- Usage: java [-options] class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: …

Member Avatar for adanaz
0
2K
Member Avatar for learn_java

I am interested in learning java online. I am looking someone who is willing to teach online.

Member Avatar for stultuske
0
120
Member Avatar for jackmaverick1

Hi! I've written function that writes to one of eight files. It writes one of the strings, which is associated with a file to that file. There is also a similar one, it just reads from that file and returns it. When I run the program, it does everything correctly, …

Member Avatar for sirlink99
0
326
Member Avatar for hatebin

Hello Im trying to code something like this [CODE] public class Decoding{ Decoding(InputStream in) //constructor Object obj = new XMLDecoder(in) } } [/CODE] [CODE] public class Test{ public static main(String[] args0){ JButton button = new JButton(); decoder = new Decoding(new FileInputStream("somtheing.xml")); button= decoder } } [/CODE] So as you see …

Member Avatar for hatebin
0
116
Member Avatar for Jessurider

can anyone tell me how to bring jbutton within a jtable.........and how do do the actionperform of the button can i do this in jframe......

Member Avatar for JamesCherrill
0
135
Member Avatar for nsyncpilu

Hy , I have a example tooken from the internet , and compiler gives me this error : The type CommPortIdentifier is not accessible due to restriction on required library C:\Program Files\Java\jre6\lib\ext\comm.jar The code is: [CODE]import java.awt.*; import java.io.*; import javax.comm.*; import java.util.*; /** * Open a serial port using …

Member Avatar for jackmaverick1
0
140
Member Avatar for dcparham

hi All - total noob[java] here; i have an app on the android written, but i believe the question here is totally java related. after my app adds field1 + field2 + field3 and displays the value in field4, how do i *start over*? thing is, if ea field is …

Member Avatar for jackmaverick1
0
173
Member Avatar for jeevsmyd

Guys , I'm a newbie Java programmer .. 3rd year comp sci engineering student and a C++ programmer with around average programming skills I should say :D !I find it kinda weird that reading something from keyboard is such a pain in java .. Importing DataInputStream , the creating and …

Member Avatar for jackmaverick1
0
103
Member Avatar for javacle

Hey gyz, i'll like to create a java database application and wondering the best Database engine/platform to use dat'll be small, compact and easily distributed, i have sum on mind but i'm confused on the best engine that offers, quick and effective data connection, small in size. Ur advice would …

-1
70
Member Avatar for lsvife

could anyone help this... when i run my application i got this error.. Running with storage root C:\Users\182\j2mewtk\2.5.2\appdb\DefaultColorPhone Exception in thread "Child process stdout copier" java.lang.ClassCastException: sun.java2d.NullSurfaceData cannot be cast to sun.java2d.d3d.D3DSurfaceData at sun.java2d.d3d.D3DRenderer.copyArea(D3DRenderer.java:55) at sun.java2d.d3d.D3DSurfaceData.copyArea(D3DSurfaceData.java:665) at sun.java2d.SunGraphics2D.doCopyArea(SunGraphics2D.java:1986) at sun.java2d.SunGraphics2D.copyArea(SunGraphics2D.java:1968) at javax.swing.BufferStrategyPaintManager.copyArea(BufferStrategyPaintManager.java:316) at javax.swing.RepaintManager.copyArea(RepaintManager.java:1239) at javax.swing.JViewport.blitDoubleBuffered(JViewport.java:1604) at javax.swing.JViewport.windowBlitPaint(JViewport.java:1573) at javax.swing.JViewport.setViewPosition(JViewport.java:1118) …

Member Avatar for peter_budo
-1
79
Member Avatar for PROgamer

Im having a problem with this program why i am not able to set present total price of product if gonna seect the product form combo and the remove button cant get the selected index,retrieve the selected item and remove the selected item from the list using its index or …

Member Avatar for PROgamer
0
241
Member Avatar for sreeram01

Hi, I want to get the information from the website using HttpURLConnection.I wrote this [code]import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; public class webPractice { public static void main(String[] args) { try { URL yahoo = new URL("http://www.yahoo.com"); URLConnection yahooConnection = (URLConnection) yahoo.openConnection(); yahooConnection.connect(); long s=yahooConnection.getDate(); System.out.println("date"+(String)yahooConnection.getContent()); System.out.println("Hi"); } …

Member Avatar for JamesCherrill
0
974
Member Avatar for Kevin Lee

Hi all. my code is below: [code] <script type="text/javascript"> function gu_gid() { var ggid = document.getElementById("gid"); if(ggid.value != "" && ggid.value != "select") { $().ready(function() { $("#autocomplete").autocomplete("test.jsp?gid=" + ggid.value, { max: 50, width: 300, matchContains: true, selectFirst: false }); }); } } </script> . . . <form action="#" autocomplete="on"> <div> …

Member Avatar for urtrivedi
0
158
Member Avatar for harinath_2007

Great to hear that.. Java SE 7 is officially released today! After nearly five years of collaboration within the worldwide Java community, Java Platform, Standard Edition is ready for download! It's an important step in Java’s evolution. The major features of Java SE 7 are: • Project Coin- many small …

Member Avatar for jwenting
0
139
Member Avatar for laguardian

Hey guys! I'm trying to create an accounting system, one that can create worksheets, create balance sheets, etc.. Is it easier to do this in Java or some other programming language. Got any suggestions on how I can accomplish this?

Member Avatar for jwenting
0
173
Member Avatar for abhayme

Hii... Read the thread and found it to be quite informative... I too, am making a stock broker project, learning purpose only... For that i use data, available free from yahoo finance... But, haven't progressed a bit in the representing via charts.. Please please help me out on this... Abhay.

-1
43
Member Avatar for 47pirates

I need to show the content of one panel class into another panel of another class ..i am new to java so i would appreciate any help...plz help me... in short i just want to add one panel into another through actionlistener of some button..

Member Avatar for 47pirates
0
410
Member Avatar for JavaStudent101z

I need some help with doing a choice. Atm i have [code]choice = switch (choice) { case 'A': case 'a': { optel (); break; } case 'B': case 'b': { break; } case 'C': case 'c': { break; } default: { System.out.println ("You did not choose any of the options"); …

Member Avatar for NormR1
0
135
Member Avatar for aman rathi

hello i am beginner to java i wrote a simple program of object array but it is showing run time error [QUOTE]Exception in thread "main" java.lang.NullPointerException at classarr.main(classarr.java:14)[/QUOTE] [CODE] class abc{ int i; } class classarr{ public static void main(String arg[]) { abc a[]=new abc[4]; int j; for(j=0;j<=3;j++) a[j].i=j+1; for(j=0;j<=3;j++) …

Member Avatar for JamesCherrill
0
103
Member Avatar for Majestics

How to add flash objects in java without Java Flash Player Api? Any idea. Just hint required.

Member Avatar for Majestics
0
101
Member Avatar for laguardian

I created a program on NetBeans. The package contains three files: MainProject.java, Input.java, and Output.java. When I run the MainProject.java file on JCreator, it opens up the Input.java form, but when I click the "finished" button on the Input form, it doesn't open the Output form. How do I fix …

Member Avatar for peter_budo
0
98
Member Avatar for Mamun13

The following code shows a simple use of speech synthesis to speak the string "Hello World". [CODE]package helloworld; import javax.speech.*; import javax.speech.synthesis.*; import java.util.Locale; public class HelloWorld { public static void main(String args[]) { try { // Create a synthesizer for English Synthesizer synth = Central.createSynthesizer( new SynthesizerModeDesc(Locale.ENGLISH)); // Get …

Member Avatar for Mamun13
0
214
Member Avatar for smiles5611

Hi I am in a java class and am working on a mortgage calculator with gui. I think I almost am done and have the assignment parameters completed but am stuck on two issues. 1) can't get my scroll pane to work. 2) I want to have the user select …

Member Avatar for NormR1
0
250
Member Avatar for cozmo87

I'm writing an application for processing scientific data. The data is displayed in a jTable. I'm done with the data processing itself, now I want to do some conditional formatting to make interpretation easier for the end user. [LIST=1] [*]The last column of the table contains a threshold value, and …

Member Avatar for mKorbel
0
2K
Member Avatar for JavaStudent101z

import java.io.*; public class Wisk_project_template { private static BufferedReader inStream = new BufferedReader (new InputStreamReader (System.in)); //***************************************************************************** // handles addition private static void optel () throws Exception { // ask name System.out.print ("Hi - what is your name? "); // call menuLevels and ask for level menuLevels (); System.out.print ( …

Member Avatar for NormR1
0
207
Member Avatar for new_developer

What does "values", "data" and "field" mean in java ? For example, definition of encapsulation is hiding of data in a class and making this class available only through methods. In this way the chance of making accidental mistakes in changing "values" is minimized. In access specifiers, Java allows us …

Member Avatar for JamesCherrill
0
215
Member Avatar for laguardian

So, I created two forms: Input and Output. In the Input form, the user inputs the required information such as name and schedule. Then when the user is finished, he/she will click the "finished" button which brings up the Output form which has all the inputted info from the Input …

Member Avatar for laguardian
0
139
Member Avatar for Niharika Jain

Hey, I've just started with JSP! Was trying my hand at this Shopping cart app.here's the code..[CODE]<%@page import ="java.sql.*"%> <%! Connection con = null; String query = null; PreparedStatement stmt = null; ResultSet rs = null; %> <HTML> <BODY BGCOLOR='ORANGE'> <CENTER> <H2>YOUR CART CONTAINS</H2> <% try{ Class.forName("com.mysql.jdbc.Driver"); con = DriverManager.getConnection("jdbc:mysql://localhost/shopping_mart?"+"user=root&password=root"); …

0
92
Member Avatar for conanzz

I have a picture with 2 buttons, and I want to move it through these buttones the problem is I don`t know how to make the actionListener for the other button to move to the other side, [COLOR="Red"]pictures are in the attachments[/COLOR] [CODE]import java.awt.event.*; import javax.swing.*; import java.awt.*; import javax.imageio.*; …

Member Avatar for conanzz
0
206
Member Avatar for farhanrocks

can anyone tell plzz!!!!what is difference between interface and annotation type in java?

Member Avatar for JamesCherrill
0
80
Member Avatar for phoenx

I have a problem in my game about button how I can display the random number example "3 + 5" in the upper button ...I try one button here but you need to click it in order to see the random number and only one number will appear..please any idea.. …

Member Avatar for phoenx
0
166
Member Avatar for Mona Ali

HI TO ALL [CODE] import java.applet.*; import java.io.*; import java.awt.*; import java.awt.event.*; import java.net.*; import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.net.UnknownHostException; public class sid_fari extends Applet implements ActionListener { String msg,msgs,msgss; Button loads = new Button("clik me"); public void init(){ add(loads); loads.addActionListener(this); } public void paint(Graphics g) { g.drawString(msgs,10,40); …

Member Avatar for Mona Ali
0
503
Member Avatar for simplyit

i am currently working with jsp for building a travel based website and have to deal with GIS maps. now i am working with netbeans ide because it has glassfish server deployed with it so it is easy to work and configure what you need. but when it comes to …

0
89
Member Avatar for Sabatino

Here is the error [IMG]http://i1199.photobucket.com/albums/aa465/aaron55494/compileerror.png?t=1311972955[/IMG] and here is the code that i'm working on [CODE] public String getKillMessage(String player) { String[][] selection = {{"Congratulations, you have defeated ", "}, {"Congratulations, you have ", "}}; int index = (int) Math.floor(Math.random() * 9); return selection[index][0] + player + selection[index][1]; }[/CODE] Any help …

Member Avatar for Sabatino
0
89
Member Avatar for efronefron

I was doing a projecteuler problem. I made a program that would find all the prime numbers under 1000000 and write them all in a file. Why is that if I use the file name as "primes.txt", the result is gibberish from beginning to end, but when I use "primes.dat", …

Member Avatar for NormR1
0
821
Member Avatar for syria718

pals i just wanna ask if anyone could show me how to declare and call a 2d array? thanks in advance!!!

Member Avatar for NormR1
0
139
Member Avatar for Farhad.idrees

Hi i m having problem... i want to give each random number to each month.. but it gives erros [CODE] public class a { public static void main(String[] args) { float average = 0f; String[] Year = {"Jan","Feb","Mar","Apr","May","Apr"}; int[] values = new int[5]; for(int i=0; i<values.length; i++) { values[i] = …

Member Avatar for Farhad.idrees
0
149
Member Avatar for 47pirates

I'm trying to display a total integer value taken from the Jtable cells and want to display the sum in the last cell so for that i need to covert the final sum to object or are there any other solution...any help will be thankful!!!

Member Avatar for mKorbel
1
182
Member Avatar for 47pirates
Member Avatar for mKorbel
0
92
Member Avatar for vomhaus

I need some help parsing a string array returned from method. current results: Here is the test Information: SPRCBT - Algebra 1 - Form 9D - Joe Smith Here is my Test Name [Ljava.lang.String;@5ec24193 Any ideas on the best way to return the values of the array instead if the …

Member Avatar for NormR1
0
227

The End.