32,199 Topics

Member Avatar for
Member Avatar for sedai77

I wanted to create a java program usig arrays. The program uses the file to input student name, city, grades scores and gender information. From this information the percent and letter grade should be calculated. how do i start?

Member Avatar for BestJewSinceJC
0
134
Member Avatar for dlong1969

I am trying to figure out how to check for carriage returns in a string. I am reading file contents into a string variable, and need to check if x0D is present (carriage return). I have tried indexOf and matcher so far with no results. Any input would be helpful. …

Member Avatar for masijade
0
222
Member Avatar for gedas

hey guys, new to gui java. i found some code and have no idea what it does could somebody explain it to me please and help me understand how it could be changed it something more readable [CODE] try { URL url = this.getClass().getClassLoader().getResource(ref); sourceImage = ImageIO.read(url); } catch (IOException …

Member Avatar for jwenting
0
80
Member Avatar for jralexander137

So I have to create a method that creates a custom arrow object and then returns it. No drawing is to be done in the method, it will be drawn once it's returned. I think I'm utilizing GeneralPath the correct way and then casting it to a shape properly but …

0
74
Member Avatar for 23Zone

Hi all, I am pretty much new to Java (I've had experience in C++) and have been working on a "simple" FTP client. I pretty much ended up with the code below. Problem is I get a lot of errors mostly related to the IOException in each method. The errors …

Member Avatar for 23Zone
0
127
Member Avatar for gedas

hey guys, i am trying to create a simple menu using canvas for example [CODE] class Name extends Canvas{ MenuItem menuitem; public Name(){ JPanel panel = (JPanel) container.getContentPane(); panel.setPreferredSize(new Dimension(800,620)); panel.setLayout(null); setBounds(0,0,900,600); panel.add(this); setLocation( 0, 20 ); MenuBar menuBar = new MenuBar( ); Menu menuFarm = new Menu( "About" ); …

Member Avatar for Ezzaral
0
99
Member Avatar for Siren88

Hi, I'm trying to create a program that reads in a line of text. For some reasons, when I try to run the program, "Your input has ---- non-blank characters." comes up under every words. I want it to just come up once at the end. Any help will be …

Member Avatar for donaldw
0
76
Member Avatar for TheWeakGetEaten

I am trying to get a simple program to work were a image moves across the window. When my program gets to the void hop(int iStart, int iStop) method, repaint does not invoke a new paint. So all I get is a blank screen. How can I get repaint to …

0
68
Member Avatar for gedas

hey everyone, i just started working with java graphical user interface, i found some source codes from the web and trying to play around with them and i am just unable to understand it fully, the code is well commented and easy to understand it is a simple game called …

Member Avatar for gedas
0
329
Member Avatar for ISAEmjr

branch between three sets of statements: One to display the numbers in descending order from the upper bound down to the lower bound (executed on character input 'd' or 'D'), one to display the numbers in ascending order from the lower bound up to the upper bound (executed on character …

0
46
Member Avatar for jrosh

I have 2 frames (classes exactly) customer & items... when a button clicked (button 'BUY') on customer frame it navigates to items frame. mean time i made customer frame [B]customer.setEnabled(false) [/B]. i called to item frame by simply creating an object of item class. then , when i coming back …

Member Avatar for saw.pawan
0
605
Member Avatar for chixm8_49

Hello again. :) I am comparing two nodes (some of my other methods need this method). I am having a problem with this method because it returns false even though both nodes have the same content. What are the problems of this code? Any suggestions? This is the critical part …

Member Avatar for chixm8_49
0
2K
Member Avatar for GradStudent

Hi all, I am working on a very simple EJB application in Netbeans 6.8 and EJB 3.0. Somethng wierd with the deployment.. I created a new Enterprise Application. But apparantly Build works fine but when i deploy it i get MODULE HAS NOT BEEN DEPLOYED MESSAGE and It Fails.. Am …

Member Avatar for peter_budo
0
93
Member Avatar for qariella

This is what I'm gonna do and I know I havnt got far, but have been searching on google for 5 hours and dont have the solution yet, Your little sister / brother asks you to help her/him with the multiplication, and you decide to write a java application that …

Member Avatar for qariella
0
156
Member Avatar for rena0514

Hey i have a program thats due sunday and my teacher doesn't really teach that well....so i'm kinda confused and need help. problem: read a file of positive intergers and then print each lin and then print each number in the line (i've done this part) this is where i …

Member Avatar for jwenting
0
145
Member Avatar for kgkamaraj

HI. I am going to store Enumeration in test file(notepad). After each sentence is over one rectangle box is coming. If any one have idea, how to remove that rectangle box. FOR EXAMPLE : [code]// twords is vector //tsenum is Enumeation //wstr3 is string FileOutputStream fw = new FileOutputStream(fileName); tsenum …

0
55
Member Avatar for fardoonmuhafiz

Which is the most efficient way of creating a string object in java? [icode]String s="helo";[/icode] or [icode]String s=new String("helo");[/icode] in terms of memory usage? Thanks in advance...

Member Avatar for fardoonmuhafiz
0
89
Member Avatar for kvass

Hey everyone~! I am pretty new to threading but I'm trying to figure it out by playing around with its possibilities. I wrote a program where 2 threads are supposed to "race" to count to 10 and then the first one there says "I win!" and the second says "I …

Member Avatar for kvprajapati
0
114
Member Avatar for ZER09

i have a problem in my code when i go to the method add i successfully go there but i cant go back to the main method someone who can help about this. sorry for my bad english. here is the code: [CODE] package project; import java.util.*; import java.lang.String; /** …

Member Avatar for ZER09
0
124
Member Avatar for kvass

Hey everyone~! I have been studying for the AP Computer Science exam, and I have a question where I think Barron's is wrong, so if someone could confirm whether I am correct or not please let me know! The following code snippets are given: [CODE=Java] public interface Player { /* …

Member Avatar for kvass
1
85
Member Avatar for Clawsy

Hi, I have an urgent ugly problem. I have a php file on a server that reads the name of the files of a directory from the server and POST them to my java application. When I try to read it, i get [CODE]Server returned HTTP response code: 400 for …

Member Avatar for PatrickSharp
0
908
Member Avatar for StephNicolaou

I'm not sure if this is the best way but I would like to display a list of addresses in a combo box where the columns come from different tables such as Countries, Cities and Types (work and home). I don't want to display the countryID or cityID, etc. but …

Member Avatar for Ezzaral
0
91
Member Avatar for kgkamaraj

For Example: java is an object oriented language. it has many feature including 1.1 robust 1.2 inheritance. java is a interesting language. I need output as follows: java is an object oriented language. it has many feature including 1.1 robust 1.2 inheritance. java is a interesting language. Note: I need …

Member Avatar for PatrickSharp
-1
147
Member Avatar for RSP86

Hi, I have a project for Uni, It is to create a system which will allow fingerprint recognition which will allow a user to access a created database and download information to a screen. I have implemented what i want it to look like, now im working on 3 main …

Member Avatar for peter_budo
0
168
Member Avatar for beforetheyknew

Hi guys, why wont this work. I'm still learning and have no experience with graphics of any kind. Just trying to put the image onto the background. The link directory is right i think. [CODE] import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Image; import javax.swing.*; //inc javax.swing.ImageIcon public class TheArea …

Member Avatar for beforetheyknew
0
96
Member Avatar for ftoby

My assignement is to write a mortgage caclulator that displays x number of lines pauses then continues to dsiplay another x lines of data. Below is my code and I can not get it to work properly. It slowly prints the first 12 lines then displays everything else at once. …

0
66
Member Avatar for sujithy15

suppose that Box is a class now Box mybox = new Box(); this first creates a reference variable and then mybox is dynamically allocated memory but what difference does it create in allocating memory to a class instance dynamically or during compile time? here what is the advantage of such …

Member Avatar for IsharaComix
0
80
Member Avatar for Ashish Upadhyay

I have developed a java web application and make installer of the application. This application is using SQL Server 2000, Now I want, when user installs this application on his/her machine, the installer install the database also, if the machine does not have SQL Server then it install the SQL …

Member Avatar for jwenting
0
101
Member Avatar for tactfulsaint

PLEASE WHAT'S WRONG WITH THIS CODES, I KEEP GETTING ERROR AT THIS STAGE [CODE]String result = ci.insertDetails(cid, name, dateOfBirth, String.valueOf(cms.getSelectedItem()), address, city, state , zcode, cnum, nod); String day = String.valueOf(d.getSelectedItem()); String month = String.valueOf(m.getSelectedItem()); String year = String.valueOf(y.getSelectedItem()); String ms = String.valueOf(cms.getSelectedItem()); String dob = year + "-" + …

Member Avatar for javaAddict
0
187
Member Avatar for ErlendHL
Member Avatar for rajarajan2017
0
60

The End.