32,204 Topics

Member Avatar for
Member Avatar for kukuruku

HI I have method object appointment ,and inside this object I have another object time and I want to get startHour method(inside the time object) (method startHour(inside TIME(object)inside Appointemt(object)) How can I do that :@ Thanks

Member Avatar for thekashyap
0
76
Member Avatar for CrazyPixel

Hey guys, Can anyone tell me what I missed in the following code? I've tried everything that came up to my mind, but I can't pass this error. Let me give you some context. My friend and I are making this program that is supposed to send message through command …

Member Avatar for JamesCherrill
0
292
Member Avatar for ganesh641
Member Avatar for Sadun89
1
117
Member Avatar for uc-it

Activity # 1. Create a program that inserts nodes using a binary search tree. Use an array structure to represent nodes of the trees. Activity # 2. Create a program that traverses a binary tree. Use the preorder, inorder, and postorder traversals.

Member Avatar for thekashyap
0
35
Member Avatar for da10x

Hi, I have to make a linked-node based priority queue for an assignment. For some reason, however, the enqueue and dequeue just won't work. I have honestly no idea why, because I think the algorithm should work. Can anyone point out the problem? It would be greatly appreciated. [CODE] public …

Member Avatar for da10x
0
83
Member Avatar for sj5536

hi can any one suggests me how to read barcode from pdf file in java is there any library . thanks in advance actully i serached on net for that i found some library such as apose barcode reader but it is not freeware and i also found JBarcode library …

0
69
Member Avatar for sj5536

hi i want to read barcode from pdf file. that pdf file has more than one barcode i have to read second barcode then what i do for that

Member Avatar for sj5536
0
219
Member Avatar for sumprit

Sir, i am in a trouble and i need some suggestion from you. I have used a sql query and have successfully showed the results in a JTable from the database. Now, what i needed is that after clicking a JButton which in a JPanel i need to show different …

0
57
Member Avatar for cretaros

i have tried adding scrollpanes to the Textare but to no avail it cant Appear. i have initialised some text and added it ot the Textarea bt it dosent work. Help me solve it lifesavers! [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import java.lang.Object.*; import javax.swing.border.*; import java.awt.Toolkit; …

0
57
Member Avatar for terexberd

which of the following statements is true about casting a) you must cast to convert from an interface type to a class type. b) you must cast to convert from a class type to an interface type. c) you cannot cast to convert an interface type to a class type. …

Member Avatar for terexberd
0
95
Member Avatar for plasticfood

ok i have this assignment which i'm just having problems with the iterator part of it. from the [B]ListType [/B]class, this is what i wrote: [CODE] public Iterator iterator(){ return new OrderedStringListTypeIterator(list); } [/CODE] this code is from the textbook which idk how they got theirs to work, but... [CODE]import …

0
68
Member Avatar for loveu

how to fix the errors? [CODE]package app.util; import java.io.*; import java.util.ArrayList; import java.util.List; import app.obj.Book; public class BookDatabaseReader { public BookDatabaseReader() { bookDatabase = new File("C:"+File.separator+"User"+File.separator+"Marissa"+File.separator+"Desktop"+File.separator+"eto na"+File.separator+"dat"+File.separator+"bookdb.txt"); } public List<Book> getAllBooks() { List<Book> bookList; bookList = new ArrayList<Book>(); BufferedReader reader = null; reader = new BufferedReader(new FileReader(bookDatabase)); for(String str = …

Member Avatar for sirlink99
0
802
Member Avatar for lacoffo

Hello everyone :) I'm learning Java and I'm creating a pong game. There is something I don't understand how to do though. It's how do I make it so that when a button in one panel is pushed, it calls a method in another panel. Let me quickly explain the …

Member Avatar for lacoffo
0
848
Member Avatar for da10x

Hello, for this assignment, we have to imitate SW Airline's boarding process. I think I have everything working so far, except for the fact that my program ignores every Passenger entered into the queue except the first one. It's almost as if it bypasses the if statement asking if the …

Member Avatar for da10x
0
427
Member Avatar for kubiak

What a project i must create if i want do some gui´s windows, and put the code after select item, i do graphical sudoku with difficulty. Can someone write me the way, i would like to start with graphic window and after that code and get the code to the …

Member Avatar for kubiak
0
53
Member Avatar for Taimoor Rana

Hello guys, I've been surfing the web for hours and trying different published codes to make a [B]stopwatch[/B] work but had no luck so far so I had to come here hoping someone can guide me or refer me to a tutorial on how to make one. [B]The stopwatch is …

Member Avatar for sirlink99
0
98
Member Avatar for Amillia89

Hai!!! I have a class, Search Class...this class suppose to search the data from the MySQL db...on top of the JFrame, should have two JMenu bar button which is call About Us and Help...the problem is, if you run this code, the JMenu Bar doesn't appear on top of the …

Member Avatar for Amillia89
0
84
Member Avatar for arshi9464

I WAS JUST EXPERIMENTING SOMETHING. AFTER COMPILING THIS I GOT THE ERROR: "<identifier>expected x=1;" i have got this error many times, but don't know why this occurs and also i have made the object of the class dabba in the dabba class's main method, is it wise thing to do?????? …

Member Avatar for arshi9464
0
105
Member Avatar for hao90

[CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class SwingAnimation{ Thread th; ImageIcon images; JFrame frame; JLabel lbl; int i = 0; int j; public static void main(String[] args){ SwingAnimation sa = new SwingAnimation(); } public SwingAnimation(){ frame = new JFrame("Animation Frame"); th = new Thread(); lbl = new JLabel(); Panel …

Member Avatar for JamesCherrill
0
120
Member Avatar for JPramod

Hi, This is just a thought. So please don't get mad at me and please don't waste much time over this either. Just wanted to share something that occurred to me. Now I've done a bit of java and a bit of C. Now what I want to do is …

Member Avatar for JPramod
0
177
Member Avatar for jackmaverick1

Hi, I just started Java (But I do have 1.5 years in c++) and I found that string switchs aren't allowed, so I tried using a character array, now when I try to define the array, it says that [ICODE]char [10 for example]array;[/ICODE] is not allowed because of [10 for …

Member Avatar for JamesCherrill
0
93
Member Avatar for turt2live

Hello, For some reason when I use the particualr block of code below it will work the first time, but when called again with RemComps as true, it will work almost the way I want it to, but instead of the one set of buttons it has 2 (or the …

Member Avatar for turt2live
0
206
Member Avatar for TheWhite

I tried everything could possibly think of to do this and have spent hours trying to figure it out.. I'm trying to take this timestamp: 2011-03-23 00:43:07 which is in GMT zimezone and convert it to a Date that is in my timezone which is 4 hours later. 1. It …

Member Avatar for JamesCherrill
0
5K
Member Avatar for asif49

I've been making a program which reads several strings from a Notepad file which's location is set through user input. Then they enter a string which is in the file, a positive message is shown if it's not then a negative one is shown. However I can only scan the …

Member Avatar for javaAddict
0
86
Member Avatar for penguino138

Hi. Im making a flash cards program and need help with making graphics, making a menu, making it so that they can go back in and access the decks, and making it so i can give it o other people, and a few other things. Here's my code: [CODE] import …

Member Avatar for penguino138
0
127
Member Avatar for sumprit

Hello everyone...! this is my first post here. I have a problem regarding finding the average from an arraylist containing database values. From the database using getString() method i have stored the results of 3 fields in 3 separate arrylist. now what i needed is to find the average from …

Member Avatar for sumprit
0
138
Member Avatar for xxfilesxx

Hey people , i need some help in order to complete my game. Explanation: Think we have 4*4 matrices 1 2 3 4 5 6 7 8 9 if we pressed 1 , 2 and 4 , i mean neighbours of the numbers,will be lighted. if the number which we …

Member Avatar for DarkLightning7
0
81
Member Avatar for Prateek Salian
Member Avatar for DarkLightning7
-2
89
Member Avatar for omor

We want to write two peograms: I: write a program from the investor takes the values ​​of r, n (where r, n positive values ​​greater than the correct one) And calculates the total shown in relation (1) and shows the value And then calculates the total of the relationship (2) …

Member Avatar for DarkLightning7
0
90
Member Avatar for monolithcode

Hi guys, I am relatively new to java language of which I'm studying at the moment. I Have spent considerable time looking through examples and java class libraries but have not been successful in finding a solution for: 1) naming an Array within a method 2) adding data to the …

Member Avatar for DarkLightning7
0
112

The End.