32,199 Topics

Member Avatar for
Member Avatar for xiaotu1990

i can get the class working, but how should i order the array by the highest to lowest word count. is it possible to order it in alphabetical order if all it prints is multiple of Xs.... [CODE]import java.io.File; import java.io.FileNotFoundException; import java.io.FileWriter; import java.io.IOException; import java.io.Writer; import java.lang.reflect.Array; import …

0
77
Member Avatar for fpaquin

Hi to all, Can someone tell me how to add tab pages to a JSP. I would like to have different input fields in each tab page. When I press submit, all input fields (in all tab pages) are sent to the server and not only the ones in the …

Member Avatar for orko
0
154
Member Avatar for brinze

I have been helped here once before. I got the info I needed to solve my issues. I'm a beginner and this online class I'm taking is killing me. This assignment involves the use of loops, most likely do-while, and possibly others. Essentially the program is to have the user …

Member Avatar for wonder_laptop
0
159
Member Avatar for eleonora

Hello, I did a pagerank application but unfortunately it does not posting the url to the server. Can anyone have a look to my code and tell me what im missing ? ! Thanks in advance! [CODE=java] import java.io.BufferedReader; import java.io.DataOutputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStreamReader; import java.io.ObjectOutputStream; import …

Member Avatar for orko
0
120
Member Avatar for hartig

Hey, I'm new here (as you can tell), and I'm in need of some help.. I need to make a interest calculator that displays the years, beginning amount of each year, the interest of each year, and the end amount of each year. I have the GUI all set up …

Member Avatar for hartig
0
181
Member Avatar for Parsu7
Member Avatar for torbecire

I am building a class that gets a proper fraction converts it to improper and does things like add, multiply... I have no way of testing this since they all have methods. Could someone tell me if this works. Thanks. [ICODE] // THIS CLASS DECLARES PRIVATE VARIABLES. public class Fraction …

Member Avatar for torbecire
0
103
Member Avatar for miseint

Can anyone help me with prepared statement? I want to retrieve data by using join tables with prepared statement. Even an example will do. Thanks

Member Avatar for jwenting
0
34
Member Avatar for parthiban

Hi all , I'm new to Networking programming in JAVA .I want to send messages across hosts which are in the same Domain without using any Server program . I'm not clear whether to use UDP or TCP . Give me some ideas and links which are useful to accomplish …

Member Avatar for jwenting
0
107
Member Avatar for Parsu7

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 10 at java.lang.String.substring(String.java:1935) at exceptionprac.Excp.main(Excp.java:22) Java Result: 1 I just want to know what is the meaning of Java Result: 1

Member Avatar for bugmenot
0
100
Member Avatar for warlockune

We are supposed to make a frame eventually that shows different buttons corresponding to methods, allowing for someone to switch, add, remove, find (using object name find number in array), and get(use number position in array to find other pieces of data), and readData, allowing someone to read data from …

0
44
Member Avatar for leroi green

hey guys and gals, newb back again with a little request from the Java Gods. in line 31 i've got an error saying "cannot find symbol" [code]NextRecord record = new NextRecord();[/code] [B]i've got 2![/B] count 'em 2 Java books and i'm still stuck...Help? [code] import java.io.File; import java.io.FileNotFoundException; import java.lang.IllegalStateException; …

Member Avatar for leroi green
0
108
Member Avatar for bestiazeem

i want to synchronize punjabi text in picture formate with audio already downloaded.can u help me please.

0
43
Member Avatar for AS_82

I am going to develop a J2ME application, where the application gets the complete dat from an XML file, for this have used kxml parser. And the parsing already done, but the problem arise after parsing, i.e., When I get a String of Unicode for a particular Word, then the …

0
53
Member Avatar for i_me_roo

Hi, Is there a way of timing how long it takes between a piece of code executing to when it finishes and then displaying this time? I would like to display a clock which begins timing when a program starts running and stops when it finishes. Thanks

Member Avatar for Aldehyde81
0
154
Member Avatar for reddirt67

not sure how this site works... I'm stuck with a run error (Array out of bound exception 4)and can't figure it out, i'm new to the world of Java programming, so I'm hoping I'm not asking anything dump! pasted my code here: /* Purpose: To develop a program to accept …

Member Avatar for javaAddict
0
38
Member Avatar for toomuchfreetime

Hey I've been writing this hangman code for last week in college. and nearly got it finished but am after running into a problem. i want to run two different button handlers but can not figure out how to?. one for the letter a to z which i have working …

Member Avatar for peter_budo
0
143
Member Avatar for first001

i hope you can solve this problem during 1 hour.:P Answer all of the following questions. a. Create a Student class that has: i. Two instance variables, name and id. ii. Two constructors with the following headers : public Student(int id, String name) public Student(int id) iii. Two get (accessor) …

Member Avatar for jasimp
0
245
Member Avatar for flipflop11

Hi, Im currently writing some code to search an array for a key, though am having problems as the if loop I've got stops after one key has been found. the problem is that my array has multiple keys, so it needs to carry on looking! i know that it's …

Member Avatar for orko
0
110
Member Avatar for balasuresh

am student of computer science. i take my final year project this semester and i do not have any project title. i will like to do some web-based system.Can you give me some title?

Member Avatar for orko
0
70
Member Avatar for Valleyman

Can anyone help me .iam doing a distributed real-time banking application.I need ides on desinging the module. i plan to use sockets in the implemntation of the system

Member Avatar for orko
0
69
Member Avatar for Dragonetti

I am a beginner on Data Structures Here is my code, I seem not to be able to figure out how to delete a little node. Someone help me out please :D Here all the methods needed to delete a node. [code] public void eraseTree() { root = null; } …

Member Avatar for orko
0
149
Member Avatar for Lioshenka

Hello, kind sirs. I am making a JUnit test case to test one of my classes. Short description of the tested class: it takes two integers - one of them is "minLen", which is entered by the user. After that the "main" method calls the "talk" method, which sets the …

0
68
Member Avatar for Helpwithjava

I Would like to create a High Score For a Game in jave Called Jetman. i have created a class in java called Score and Score list to display the score but i do not know how to create a highscore using an Array List the Score Class is package …

Member Avatar for Helpwithjava
0
141
Member Avatar for jatin29
Member Avatar for Helpwithjava

package jetman; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.*; //import java.util.Arrays.sort(); public class scoreList { String filePath = "Score.txt"; private ArrayList<Score> scoreArrayList = new ArrayList<Score>(); /** Creates a new instance of scoreList */ public scoreList() { FileWriter writer = null; try { writer = new FileWriter("Scores.txt"); } catch (IOException …

Member Avatar for jwenting
0
92
Member Avatar for rdhiravani

Hi, I have a JTable (call it Log Table) in my code showing Records & below that I have other tables showing some statistics based on new Record Inserted. The Log Table contains 21 columns. Each time a new record fetched is inserted into Log Table as it is & …

0
62
Member Avatar for themailsian

Dear Sir, Can I use SQL query with in the Jave script being used in ASP page. If i can please reffer me some samples code. Actually I have made a form in ASP code it contain a combobox with items from the database. on the selection of any item …

Member Avatar for sbv
0
72
Member Avatar for piers

Something I have noticed with my uni course is that there are so few women on it. Is there some reason why women stay away from the best part of using a computer IE programming in java? am I a bit strange in getting excited when I finally finish a …

Member Avatar for neocoder
0
344
Member Avatar for sachinpatil886

Hi i have written following java application in java and now i wnt to convert it into java applet,so an anybody help me out,plz.thanx in advance. import java.awt.*; import java.io.*; import java.awt.event.*; import javax.swing.*; import java.util.*; import java.text.*; import javax.swing.event.*; import javax.swing.undo.*; import javax.swing.text.*; import javax.swing.KeyStroke.*; public class mynote extends …

Member Avatar for jwenting
0
141

The End.