36,051 Topics

Member Avatar for
Member Avatar for Tenac

Hello. I'm currently revising for an exam in structures and algorithims, but recently ran across a problem in my studies. I have already tried lookung through notes, online and Daniel Liangs java book, but can't find exactly what I need. The code is as follows: [CODE] public class QuizTest { …

Member Avatar for deng_cen
0
136
Member Avatar for ttamilvanan81

Hai, I need to read the Foxpro(dbf) file, and execute that file in MSSQL through Java code. That means Migrate the Foxpro dump file into MSSQL. Also i am using the Struts Tags for create new application. But the Tag was not working. I am using the following code for …

0
86
Member Avatar for hassanmushtaq

how to get enter character from textfield in j2me. as in c/c++ for enter character we user 13 as character code. what abt in j2me

0
63
Member Avatar for littleghost76

The assignment is to write a circular linked list. I know that it is pretty much the same thing as a singly linked list but with the head pointing to itself instead of null. however i am not sure if i did this right or not... or if my add …

0
64
Member Avatar for Bill T

Im just a beginner but I find java exciting can someone help me Im trying to write a program to spell ambulance backwards I think im close but I need somw help Im using strings to spell. Ty. :sad:

Member Avatar for nblue
0
245
Member Avatar for littleghost76

hello everyone, im having issues with this. i don't know what else to try. i am supposed to add a remove function to delete the last node in the list, i am trying this, but i get an endless loop, and when i change it around it just sits there. …

Member Avatar for littleghost76
0
102
Member Avatar for kamelin

How would I write a class that could enumerate all positive integers starting with 1?

Member Avatar for ~s.o.s~
0
74
Member Avatar for loilord

hi,i'm a newbie of java.now develop a system to evaluate the usability of a website. now i facing a problem.how i retreive the hyperlink,image and others fr the HTML code? use bufferReader to read out the HTML code? or use the tokenizer better?or use both of it? somebody help me,pls..my …

Member Avatar for ~s.o.s~
0
86
Member Avatar for nblue

Hi, everyone, I just start study Swing . I have some small question about the JTable. Is there anyway I can make the Jtable to auto resize during the runtime when I maximize the window? My code did not display the stuff I put onto the Table, what did I …

Member Avatar for nblue
0
101
Member Avatar for kamelin

I need help solving this Java problem, any advice, tips, or code would be greatly appreicated. Thanks. [COLOR=#000000]Begin by writing an abstract class named [B]Sequence[/B]. The [B]Sequence [/B]class contains the following abstract methods:[/COLOR] [B][COLOR=#000000]public abstract boolean hasNext()[/COLOR][/B] [B][COLOR=#000000]Returns true if the sequence contains another term after the current term. This …

Member Avatar for jwenting
0
117
Member Avatar for tinamary

hi guys , can you help me by giving some tips as to how to handle classes for techies in a software firm as a corporate trainer for java and J2EE, i hope you ill guide me with the revelant information, and if possible please send me some sessions on …

Member Avatar for jwenting
0
120
Member Avatar for anitadoll

Hello, You guys tried to help me when I had problems with my computer, and wanted to know if you could help me with this. My sister has three kids who love to download everything. She recently has had popups, and who knows what else going on, and could not …

Member Avatar for kylethedarkn
0
94
Member Avatar for efui

Need help with creating a shopping cart in JSP :idea: . The problem is am very new to this environment(JSP) and I have undertaken a project to develop an e-commerce web-site with shopping cart linking to a MySQL database. The main goals of the shopping cart is to process orders …

Member Avatar for jwenting
0
1K
Member Avatar for hegRT

Hi there Im having a problem with my database connection...other instances of nearly the same code works but I cant understand why this isn't working My class which retrieves info from the data base is [code] /* * MuscleSchedule.java * * Created on 07 May 2007, 18:03 * * To …

Member Avatar for jwenting
0
291
Member Avatar for shmay

I simply want to create a GUI interface that allows the user to input an integer. I know that a GUI is very unnecessary for such a task, but I want to learn the basics of GUI.

Member Avatar for peter_budo
0
119
Member Avatar for princekool

[COLOR=#000000]The Program. [/COLOR] [COLOR=#000000]You have been asked to solve a problem for an old gameplayer. She has purchased a new game. It is a sort of Solitaire. This suits the old gameplayer as she has no friends so a game played alone is ideal. [/COLOR] [COLOR=#000000]The game is played on …

Member Avatar for hbk619
0
127
Member Avatar for the_jackel

Please help with my assignment. I have to code a program that is menu-driven and im not so clued up.

Member Avatar for jwenting
0
53
Member Avatar for rajumurugan

Hi techies, I've a problem. My application runs in Tomcat. images are stored in the "images" folder which is in .war file in webapps folder. I've mentioned the image path in the jsps. It takes lot of time to load a page with smaller amt of dynamic content 'coz of …

0
59
Member Avatar for Darkfoxx

Here is the full code thus far: [CODE] public class Cardmain { public static void main (String[] args) { War wargame = new War(); wargame.play(); } } class Deck { static final int numberOfCards = 52; Card[] cards = new Card[numberOfCards]; int index; public Deck() { // Constructs all 52 …

Member Avatar for peter_budo
0
5K
Member Avatar for aruna_k_2006

import java.util.*; import java.text.*; class DemoDate { public static void main(String[] args) { Date date=new Date(); SimpleDateFormat sdf; // sdf=new SimpleDateFormat("hh:mm:ss"); //System.out.println(sdf.format(date)); // sdf=new SimpleDateFormat("dd MMM yyyy hh:mm:ss zzz"); //System.out.println(sdf.format(date)); sdf=new SimpleDateFormat("E MMM dd yyyy hh:mm:ss"); System.out.println(sdf.format(date)); } } i am getting current date and time but i want to …

Member Avatar for masijade
0
86
Member Avatar for aruna_k_2006

import java.util.*; import java.text.*; class DemoDate { public static void main(String[] args) { Date date=new Date(); SimpleDateFormat sdf; // sdf=new SimpleDateFormat("hh:mm:ss"); //System.out.println(sdf.format(date)); // sdf=new SimpleDateFormat("dd MMM yyyy hh:mm:ss zzz"); //System.out.println(sdf.format(date)); sdf=new SimpleDateFormat("E MMM dd yyyy hh:mm:ss"); System.out.println(sdf.format(date)); } } i am getting current date and time but i want to …

Member Avatar for Rayhan Muktader
0
110
Member Avatar for lucky1981_iway

Hi, I'm using AspectJ in my project. There are some problems which i'm facing currently . One of the major issue is " My cross views only show the static join point . Now the problem is there is no gurantee that the join point will match at runtime (ex: …

Member Avatar for lucky1981_iway
0
83
Member Avatar for rinko

How can a Java program be optimized? I have no experience in this thematic so I could use some key words so I acn go deeper into it! Thanks

Member Avatar for thekashyap
0
288
Member Avatar for mspooh8

Hi, I'm new here. I'm kinda behind on my school work due to me going into labor early. So, I'm doing an assignment and the next thing I have to do is 'call the generate method and display the numbers for all four games,' and I'm stuck. Also I keep …

Member Avatar for lucky1981_iway
0
88
Member Avatar for suigion

Hi All, I am new in JSP. I would like to know how to pass a value from a textbox into a parameter?? [U]For example:[/U] Insert value into Emp (Name) value (????); The "????" should be the text when the user enter the name in "Name" textbox. Thanks in Advance, …

Member Avatar for ~s.o.s~
0
82
Member Avatar for franhurley

Hi all Im a a newbie here and am currently haveing my first go at servlets. I am using netbeans5.5 and apache tomcat 6.0 and trying a simple helloThere servlet. Every time I try and compile it either with command line javac command or netbeans I get the above error. …

Member Avatar for peter_budo
0
122
Member Avatar for viper4734

hi there i was wondering if someone could help me out. im doin an assigment where i have to create a CD database with a GUI. at the moment im having problems with my search engine. I enter 4 cd's from any artist. close the window, open the search for …

Member Avatar for viper4734
0
134
Member Avatar for Diego1029

Hi! i have put some html files in my jar file,but i cant open the html files when i un the jar file.what should i do?

Member Avatar for Diego1029
0
64
Member Avatar for iknow29

hi, i m final year student. i dont know what to do with my projects. Will you help me in doing projects on Visual basic. This is really urgent to submit.

Member Avatar for stymiee
0
80
Member Avatar for aruna_k_2006

see my query is like this (select studentname from student where studentid='+studentid+') then i display in jsp like this st_16 //studentid .nikki //student names .nani //student names now second time when i add select student id st_17 now jsp i have display like st_16 .nikki .nani //first id's name + …

Member Avatar for aruna_k_2006
0
172
Member Avatar for ranindu

/* <applet code="Assign2.class" width=350 height=350> </applet> */ import java.awt.event.*; import javax.swing.*; import java.awt.*; public class Assign2 extends JApplet { private JButton buttons[]=new JButton[5]; private String labels[]= {"Footwear","Kitchen Goods","Stationery","Music","Ladies Wear"}; private JPanel thePanel; private JMenu editMenu,optionsMenu; public JMenuItem items[]=new JMenuItem[5]; private JRadioButton options[]= new JRadioButton[3]; private JMenuBar menubar; private Color colors[]= …

Member Avatar for masijade
0
103
Member Avatar for Venks

Hai friends i need help in downloading jar files or zip from website by giving particular url in java code...how can i do this , please any one tell me...

Member Avatar for Venks
0
79
Member Avatar for san_fran_crisko

Hi, I'm having a small yet annoying problem that I've been trying to get my head around for quite some time. Any help would be greatly appreciated. I am recalling data off a Vector and displaying it on a JTextArea using code like this: [code]menu.genreTextArea.append("Found the following CD(s), whilst searching …

Member Avatar for san_fran_crisko
0
86
Member Avatar for ranindu

here is the code.... below is my problem............. /* <applet code="Assign2.class" width=350 height=350> </applet> */ import java.awt.event.*; import javax.swing.*; import java.awt.*; /* Class Name - Assign2 PRIVATE FEATURES private JButton buttons[] // array to store buttons private String labels[] // array to stoer the department name private JPanel thePanel; // …

Member Avatar for iamthwee
0
266
Member Avatar for roketto

Hi there... I'm pretty new to java, just learning arrays now. I've written a program that deals a "poker hand" to 4 players, using methods, but the problem with that is sometimes the same card gets dealt more than once. I'm now trying to use a boolean array of size …

Member Avatar for thekashyap
0
2K
Member Avatar for Dhanesh.M

help! I have made three UI forms to accept inputs from the user (it is about airline reservation for my academic project),I want to open these forms in succession following the inputs from the user so how do i manage to open up these forms...Help me

Member Avatar for jwenting
0
92
Member Avatar for mojeze3

this is an example of the file: Caldwell E.,CSC,25,5,500.00,250.00,100.00,20.00,1000.00 there are 18 of these entries in the file consists of : last name and first initial,department,miles walked,number of pledges, and the pledge amounts. I have to : 1. display the file content 2.compute the total pledges obtained by each person …

Member Avatar for antaryami
0
93
Member Avatar for ranindu

hi, When you are using the Jprogressbar the % completed is usually printed in the middle of the bar. Can you change it to be printed at the end of the completed % . is there a method for that??? can anyone help me with this please..............:((

Member Avatar for antaryami
0
88
Member Avatar for MimieIdayu

how do i "hide sheet and hide window" like in spreadsheet.please help me in java swing code...a.s.a.p.thanx:pretty:

Member Avatar for antaryami
0
84
Member Avatar for ndeniche
Member Avatar for vinod_javas

Hi guys.., I am working on RMI Application... server client communication, while running my application in DOS mode i am getting this error can any one help me out for this error? C:\javas>rmic serverimpl Exception in thread "main" java.lang.NoClassDefFoundError: sun/tools/java/Consta nts at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12 4) at …

Member Avatar for jwenting
0
84
Member Avatar for new_2_java

Hi all, I am using RandomAccessFile, to create a log file. The log file gets created fine, when I open it in UNIX (I mean the display layout). However, when I open the file in Windows, in notepad, then I see instead of '\n' a little square. So all the …

Member Avatar for ~s.o.s~
0
111
Member Avatar for dualcore93

For those of you interested in having a messenger for your cell, I downloaded an application called MiM done in java with witch you can access your MSN and Yahoo! Messenger contacts. It seems that is in a promotional period and its download is completly free, without need of sending …

Member Avatar for jwenting
0
122
Member Avatar for Fenerbahce

Hi, When i press "end" button on keyboard, i want to see "pressed on end button" message on screen. How can i do this. I am new in Java. Thanks

0
65
Member Avatar for akhilesh.nitt

[B]hi all[/B] The Microsoft Jet database engine has an internal limit of 255 fields per query. but my Excel sheet containg more than this. and i have to fetch all the fields of the excel through JDBC. plz help me how can i fetch the data .. [B]thanx in advance …

Member Avatar for masijade
0
60
Member Avatar for l0stb0y2008

hey, I'm a beginner in Java programming. I'm trying to do the vending machine program. And I'm having difficulty doing the do while loop. The scenario is if the user entered invalid input 3 times, it will loop back to the first menu using do while loop and switch case. …

Member Avatar for thuyyeu
0
85
Member Avatar for akhilesh.nitt

[B]hi all[/B] The Microsoft Jet database engine has an internal limit of 255 fields per query. but my Excel sheet containg more than this. and i have to fetch all the fields of the excel plz help me how can i fetch the data .. [B]thanx in advance [/B]

Member Avatar for jwenting
0
66
Member Avatar for JavaNewbie07

Hi all, How do I create a bar graph in Java to hold a passed array of units and frequency? Thank youin advance for helping.

Member Avatar for jwenting
0
101
Member Avatar for javageak

I need help in figuring out how to make the code for sentences by determining that there is ., ?, ! in the sentence at the end. And the paragraph where you find each paragraph by the spaces between the lines. If you could just help me start, I'll finish …

Member Avatar for iamthwee
0
95
Member Avatar for javageak

[COLOR=#fa6400]I really need help with this code...I have to display statistics from each and use Scanner and Tokenizer. For displaying each character I have to use Character.isLetter(). Please help me figure out how to display all of these things from a file. //TextFileStats.java //Print out Statistics using StringTokenizer. [/COLOR][COLOR=#941edf]import[/COLOR][COLOR=#000000] java.io.*; …

Member Avatar for iamthwee
0
131

The End.