35,618 Topics

Member Avatar for
Member Avatar for sciwizeh

I have the eclipse for Java developers, and I have the MinGW that's distributed with Dev-C++. I just want to know what downloads need to get from the update manager of eclipse, I also don't know how i set it up to use the compiler that came with Dev-C++. I …

0
80
Member Avatar for JMChurch25

Hello, almost done with the Sudoku Solver but dealing with a couple last glitches in the solve method that supposed to use a backtracking algorithm. It is printing out some weird values and outputs. I've got the program printing out the unsolved puzzle fine but the "solved" puzzle is nothing …

0
64
Member Avatar for ghaith

Hey, I'm working on a project where i have to visualize an algorithm, i have to generate graphs in the application, and it must be using Gxl, i searched for manuals on gxl and java, i found jgraph, but I'm actually not sure where to start on that, let's say …

0
66
Member Avatar for milgo

hi,im new in java & i really dont have the basic concepts of object oriented programming.please help me with the code for application class that automatically rejects anyone above the age of 40.kindly include comments so that i can understand better.thanks

Member Avatar for Ezzaral
-1
123
Member Avatar for BrianK123

This is probably just a stupid mistake but I can't figure it out. I have this code: [CODE]TextField passGet=new TextField(10); passGet.setEchoChar('*');[/CODE] and when I try to compile, I get and <identifier> expected error. Anyone know why?

Member Avatar for BrianK123
0
1K
Member Avatar for Chaster

Yellow, From my application - for some reason - I am able to send messages up to only 64k. I've been wondering if it is possible to split an InputStream into partitions of 64k, and then, on client side to join them again. Is this possible? Have you ever done …

Member Avatar for BestJewSinceJC
0
84
Member Avatar for Johannady2

number = 10; sum = 0; for (var i=1; i<= number; i++) { sum = sum + number; } document.write("sum = " + sum); number = 10; for (var i=number; i > 0; i--) { if ( i%2 == 1) document.write(i); } product = 1; number = 5; for (var …

Member Avatar for verruckt24
0
117
Member Avatar for viber101

hi I would like to know if it is possible to display the line number in a JTextArea? I design an editor using NB ide and I'd like to offer the same features like Text Editor that show the number of EACH line at the left side of the text. …

Member Avatar for Ezzaral
0
63
Member Avatar for BrianK123

I was writing an applet before and was displaying information in a JOptionPane. Useing \n, I was able to make the information display multilined like this: [CODE]Name1 Grade1 Name2 Grade2 etc.[/CODE] I unfortunately had to change my code from an applet to a JFrame and subsiquently my Labels to JLabels. …

Member Avatar for BrianK123
0
190
Member Avatar for mona515

I've been tryin to figure out how to pick numbers from the 'choices array' and put then into the results array. Can any body help me. I was thinking of adding a for loop but not sure. The code i got so far is below. import java.util.Random; import java.util.ArrayList; public …

Member Avatar for notuserfriendly
0
83
Member Avatar for gpittingale

I have called some numbers from a mysql database, they come out like this: [CODE]${parish.TotalHouseholds}[/CODE] Now what i would like to do is take the TotalHouseholds and TIMES it by 21.33% and display the answer in a separate cell and i was wondering if anybody could give me a plain …

Member Avatar for gpittingale
0
79
Member Avatar for prasanna_godugu

Hi All In my application attachments will store as BLOB in the database, when a person receive the mail how to view the attachment with out download it just like yahoo mail there are 2 links 1) View Attachment , 2) Download Attachment, i want similar functionality please some body …

Member Avatar for crunchie
0
89
Member Avatar for kirti19tanwar
Member Avatar for surya_anand00

hi, I want to call the .jrxml while which is jasper report file from the jsp. also i want to know how the pass runtime query to the report file.

0
59
Member Avatar for shahab.burki

Hi, Can we declare Char Array in Java instead of String Arrays? So we can manipulate them? or we have to use Strings and then use charAt() method for it? Thanks

Member Avatar for stultuske
0
145
Member Avatar for k2k

hi, i actually had done similar programs many times and don't know why eclipse gave me strange output this time. anything possibly wrong? thanks [code] class RobotShop { public static void main(String[] args) { try { Scanner reader = new Scanner(new File("air.txt")); String robotName = null; String serial = null; …

Member Avatar for stephen84s
0
114
Member Avatar for aodpreacher

Hi i have a java class called City and in this class i have this. [CODE] public class City { /** * read the file and make 10 objects * */ private String name; private double population; public City(String name, double population) { super(); this.name = name; this.population = population; …

Member Avatar for BestJewSinceJC
0
136
Member Avatar for transplantedNYr

So I am going through the "Getting Started Using Java RMI" and I get stuck at the following spot... [CODE] [B]javac[/B] -d [U]destDir[/U] Hello.java Server.java Client.java [/CODE] I use... [CODE] [B]C:\"Program Files"\Java\jdk1.6.0_11\bin\javac [/B] -d [U]C:\"Documents and Settings"\"Andrew Carrara"\Desktop\test\mysrc\example.hello[/U] Hello.java Server.java Client.java [/CODE] I get an invalid flag error. What exactly …

Member Avatar for transplantedNYr
0
134
Member Avatar for Andrewsc1

Im new to java and just trying to figure out the basics. i cannot figure out what is wrong with my program. Any suggestions on whats wrong? [code]4import java.util.Scanner; 5 6public class Lottery 7{ 8 public static void main(String[] args) 9 { 10 //Generate random lottery numbers 11 int lottery …

Member Avatar for Andrewsc1
0
142
Member Avatar for youngstorm

Hi, I have an int method that checks an array for a certain number. If that number is NOT found I won't to 'return null;'. I get this error "incompatible types" "found : <nulltype>" "required: int" How can I resolve this? thank you, Michael

Member Avatar for youngstorm
0
126
Member Avatar for scott_rider

Is there a method I can grab parent/grandparent nodes? The examples I have found appear to use only xpath statements to select nodes. Some of my failed attempts: /table/tr/td/b/font[self::text()="Nohup Files"] /table/descendant::font[self::text()="Nohup Files"] <table> <tr> <td><b><font>Nohup Files</font></b></td> </tr> </table>

Member Avatar for Ezzaral
0
102
Member Avatar for Y2K_MASTER

Hey guys, I'm making a program that takes 3 sets of coordinates from a user to make a triangle. It then calculates the length of each side, the perimeter of the triangle, the area of the triangle, and the 3 angles. I have it all coded, except for the area …

Member Avatar for Y2K_MASTER
0
157
Member Avatar for gpittingale

Hi everybody, i am new to java and trying to develop a bit of an app i have created the first page, dynamicall filled a dropdown box all is fine i press the submit button and i get the error below: java.sql.SQLException: Parameter index out of range (1 > number …

Member Avatar for gpittingale
0
167
Member Avatar for elangobala

Hi i m developing jsp application. In my system the screen resolution s 1024*768 pixels.It will shows the web page properly.While viewing the same page in my friends room his system resolution s 800*600 pixels it will be of in different form of shape and nature.How to make the page …

Member Avatar for peter_budo
0
119
Member Avatar for jpp10

I have the following code, which reads from the .csv file and simply displays the output as whatever is being read from the .csv file...(which is test1.csv in the test1.zip attached with this post) //class to read CSV file : import java.io.DataInputStream; import java.io.FileInputStream; import java.io.IOException; public class readCSV { …

Member Avatar for jpp10
0
181
Member Avatar for l_03

[ICODE] import javax.swing.*; public class Tokenize{ public static String s[] = new String[100]; public static void main (String args[]){ String ask = JOptionPane.showInputDialog("Enter:"); isAsk(ask); } public static void isAsk(String ask){ StringTokenizer st = new StringTokenizer(ask," ",false); int input = Integer.parseInt(st.nextToken()); if(input<=10&&input>=0){ System.out.println(input); } } } [/ICODE] Here is the sample: …

Member Avatar for verruckt24
0
168
Member Avatar for janakavishwajit

Hi alll............. Please can someone help me to find a way to call for a c# function from a javascript which is in the web page of web browser included in a windows application....... Urgently need....... Please............!!!!!!!!!

Member Avatar for janakavishwajit
-1
91
Member Avatar for guatemalagirl

the purpose of my program is to ask the user for their numerical grades (depending on how many total grades they have) and then they are given their letter grade. but i cant get the for loop to loop the question according to their number of total grades [code=JAVA] import …

Member Avatar for verruckt24
0
295
Member Avatar for bebe11bebe

I have two other classes but they are very small, and this is where the error lies. This is my code: [CODE]import java.util.Scanner; public class Player { private boolean isHuman; private int score=0; private Scanner input; public Player(int human) { System.out.println("If you would like to play, press 1. Otherwise, press …

Member Avatar for r.stiltskin
0
124
Member Avatar for BrianK123

does anyone know why this does not work? [CODE]public class AddStudentListener implements ActionListener { public void actionPerformed (ActionEvent event) { //Changes title Title.setText("Add Student"); //Obtians student information from the user Object[] possibilities = {"IB Computer Science", "AP Computer Science", "Algebra II"}; StudentClass = (String)JOptionPane.showInputDialog(All, "What class is \nthe new student …

Member Avatar for sillyboy
0
109

The End.