35,618 Topics
![]() | |
hi i download eclipse 3.5.1 how can i install tools for j2me programming on it ??? thanks | |
I'm doing my first year project at uni and have hit a stumbling block. I have to make a basic version of a media player that will allow a user to add tracks that are stored in a MS Access database to a playlist, and give them a rating. My … | |
I've been having problems with my form program while trying to call data entered into a text field and displaying in a GUI after pressing a button. Here's my code. [CODE]import java.awt.*; import java.awt.event.*; public class ProjectForm { public static void main(String[] args) { Frame frm=new Frame("Personal Information Form"); frm.setSize(350,200); … | |
/*None of the buttons except create and clear work can someone help please , can anyone help me with the parts i have missing , the account and date test class work fine i just need the bank account GUI to work properly , here is a detailed explanation of … | |
i got a problem wana display my String but it doesnt work here is my code i dont understand why it doesnt print me anything..... [code]class StringDemo { public static void main(String[] args) { String s1,s2,s3,output; s1=new String("hello"); s2=new String("hello guys"); s3=new String("happy birthday"); output="s1 = " +s1+ "\ns2 = … | |
[CODE]import java.io.*; import java.util.*; public class UMUC { public static void main(String[] args) throws Exception { String s1 = "input.txt"; String s2 = "output.txt"; try { FileReader fr = new FileReader(s1); BufferedReader br = new BufferedReader(fr); String lineRead = br.readLine(); while(lineRead != null){ s2 = s2 + "\n" + lineRead; … | |
Hi, I am having problems counting the number of words in a text file that i created (it has 130) and printing that finding (number) into another text file (output)....Any help is welcomed. I have this, but it doesn't print anything out yet...am stuck. [CODE]import java.io.*; public class FileIO{ public … | |
I have 2 objects called X and Y created from a class called Product which has a field called numInStock. From another driver program, I want a user to input either X or Y with their response being stored in a string userchoice (so user enters X or Y as … | |
Hi all, I am undertaking a project that will extract information like verbs and nouns from requirements and map those part of speech to architectures or components. How can I develop such tools in java. I desperately need your help! cheers Badamasi | |
Hey guys, Im having trouble adding an imported string file to a linked list (the purpose of the assignment is to find the most frequently used word) here's my code: (my problems in the mostFrequent class so you dont really have to look at the other classes. i just provided … | |
Hi. I am having problems connecting and the use of DAO Could someone start me off to find problems that are conceptionally wrong with the structure? [b]error [/b] if the connection is made and database is built (DerbyDAO) then the InstructorDao SHOULD become JDBCSchoolofdbDAO and return "profile" which will allow … | |
hi. I can't figure out why other properties are found but this one is not. [code] the key: strCreateAdminTable Exception in thread "main" java.util.MissingResourceException: Can't find resource for bundle java.util.PropertyResourceBundle, key strCreateAdminTable at java.util.ResourceBundle.getObject(ResourceBundle.java:384) at java.util.ResourceBundle.getString(ResourceBundle.java:344) at model.ModelUtils.getResource(ModelUtils.java:48) at model.dao.DerbyDAO.createTables(DerbyDAO.java:185) [/code] can I build a table with this one? or … | |
Hello, I need a sorted stack/queue. I mean, the element removed from the stack must be the one with great priority. Stack dimension varies a lot (becomes bigger very fast). I need also to search and REMOVE elements in that stack. Does Java give some good implementation for this? What … | |
Hi , I have created a submit button "sbutton" that should take all totals from 3 boxes and if that total is greater than 1, then it should be subtracted from 1 and the remainder is suppose to be displayed as change...this is what i have [CODE]public void actionPerformed(ActionEvent evt) … | |
Hi All, I am new to JSP. From my JSP application i will be uploading some images these images should be encrpted when they are uploaded. If any one opens the image which was uploded through my JSP application, they should not be able to view the image. The images … | |
i am tired of opening my java applications through IDE s i wouuld like to know all the possible ways of opening my applications without having to write any thing in command prompt i found two i can make a .jar file or a .bat file are there other ways … | |
Hello, I am having a difficult time getting my Binary Search Tree class to compile. I added 2 functions "add" and "search". Before I added the 2 functions. It compiled successfully. If someone can help me in the right direction. I will definitely appreciate it! [B]2 Functions:[/B] [CODE=Java] public BTNode<E> … | |
Hi people, I want to have an if statement in my servlet that if no results are found from database i print out an error to a html page. Im not to sure how to do this though..See my attempt in code below, can someone tell me what im doing … | |
Hey I'm having trouble with this program, for some reason im stuck and dont know what to do. If you could help me out that woud be great. What i have to do it this. Using classes, arrays, sorting and searching write a java program to manage an online address … | |
I have a class which extends JPanel and implements ActionListener. I am having 2 menuItem. When I implemented the abstract method actionPerformed(ActionEvent e) and used repaint if the event source are the menuItem paint method is not called. What can be the possible reasons? This is what I am doing … | |
[CODE]import java.io.*; class ArrayGet { int[] a = new int[20]; void FindMin(int[] a) { int min=a[0]; for(i=0;i<=10;i++) { if(a[i]<min) min=a[i]; } System.out.println("Thr smallest element in the array"+min); } void Display() { for(int i=0;i<10;i++) { System.out.println("The elements in array are "+ a[i]); } } void GetMethod() { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); … | |
Help, I cannot work out how to get my loop to continue until the user enters in 0. If the user enters 1 then the loop needs to continue until there is no more groups to enter which is the point the user enters a 0 [code]import java.util.Scanner; public class … | |
Please help, as I do not know what I have done wrong. Error: illegal start of expression, and ; expected. [code] import java.util.ArrayList; import java.util.List; public class Employee { public static void main ( String args []) { //unique identifier int empID; String firstName; String lastName; double salary; //not sure … | |
I am new to JSP and am having trouble comparing string with the value in a form field submitted. The following is the code that I am executing through Tomcat and is not giving me the desired result: [CODE=java]<% String myvar = request.getParameter("var1"); boolean first = false; if (myvar == … | |
would anyone please take a quick look? this always return false for some reason... the database connection is fine and the query is fine... it actually returned the right password from the database. please see below [code] public boolean passCheck(String login, String pass) { String realPass=""; try { String query … | |
I recently completed a "fun" program where it asks the user questions and outputs answers. I submitted it and my professor said all was great, except he wanted me to implement methods into the program. I have NO idea how o do the methods. Can someone use my code to … | |
Hi guys, I am using MyEclipse....I have even import the itext.jar file to my project folder....still I am getting error in my java code.... Error in resolving import com.lowagie.text.html.*; import com.lowagie.text.pdf.*; Can anyone help me............. | |
I'm putting together the basic layout for a contacts book, and I want to know how I can make the 3 test buttons span from edge to edge just as the arrow buttons do. [CODE]import java.awt.BorderLayout; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.Box; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; … | |
Hi everyone, i want to output the results of the select statement in the code below, to a html table as opposed to just a list of out.println statemants..Can someone tell me how to go about doing this please?? Thanks oggiemc [code=java] import java.io.*; import java.lang.*; import java.sql.*; public void … | |
Hi Having a problem with iframe resizing when the iframe body is a jsp file which contains a dynmically built ajax table. Users select different options from a drop down. All but 1 is a standard static jsp file. The other is a jsp file with a dynamic ajax table … |
The End.