32,199 Topics

Member Avatar for
Member Avatar for newbieJava85

Hello, I am a little stuck. I have grasped the concept of methods, understanding thier purpose but still unsure on how to code it. Below is part of my code I kindly need guidance on. I am trying to create a method which can hold roles and depending on which …

Member Avatar for rubberman
0
207
Member Avatar for Ryan_14

I added a Breakpoint here: public class JavaApplication8 { I added another here: public static void main(String[] args) { Finally, I added one more here: Scanner input = new Scanner(System.in); Ctrl + F5 is supposed to start the debugger, right. Mine doesn't work. When I hit Ctrl+F5, another window opens …

Member Avatar for JamesCherrill
0
200
Member Avatar for CoderGuy101

Programming is such a customizable duty. I would like to ask some approaches (not solutions) to coding a program that has a GUI that functions as a cooking timer for hamburgers, steaks, cookies, etc. Call it reasoning or planning assistance for software development. I am having a tad bit of …

Member Avatar for JamesCherrill
0
148
Member Avatar for ballhysaledio_1

Hello.I am currently a newbie in Java and I was wondering if smn would help me for this project. Thanks. JAVA PROGRAMM Build a class named Rectangle that represents a two - dimensional area . This class must contain: public Rectangle ( int x , int y , int width, …

Member Avatar for CoderGuy101
0
189
Member Avatar for mtho

I'm new to Java and im trying to create a game that uses an AnimationTimer. I want to loop through the question one at a time but at the moment the for loop I use just adds all the question to the canvas at the start of the game. I …

Member Avatar for stultuske
0
709
Member Avatar for kwonzo

Hello i have been working on my assignment for java for a while now and I was hoping I can get some help. My teacher makes us run test cases to ensure our code works. My code compiles successfully but does not pass any of the test cases. It would …

Member Avatar for kwonzo
1
340
Member Avatar for manalibhadula

Hi guys Does anyone know any java api which can handle .xlsx file with 10lakh records? I have tried using POI XSSFReader, it is not supporting this much large file. My xlsx file size increases horizontlly as well as verticaly.

Member Avatar for David_50
0
100
Member Avatar for manalibhadula

Hi guys I am facing issue in an array list where i am putting a value at specified index, but it is replacing all the index value in it. I am putting map inside a arraylist, now in a loop when i am putting value in list.add(i, Map).The value at …

Member Avatar for manalibhadula
0
218
Member Avatar for london-G

Hello Daniwebers! I am trying to insert the values that were selected in a jtable. I know how to display the sql results in a table but don't how to add the selected values into it. Example: only display the items that the users has searched for and add them …

Member Avatar for stultuske
0
184
Member Avatar for SkateX

Cannot find symbol for a basic java command? import javax.swing.J0ptionPane; public class HelloGUI { public static void main (String[] args) { J0ptionPane.showMessageDialog(null, "Hello, world!"); } } c:\Users\Nathanial\Desktop\myJavaPgms>javac HelloGUI.java HelloGUI.java:1: error: cannot find symbol import javax.swing.J0ptionPane; ^ symbol: class J0ptionPane location: package javax.swing HelloGUI.java:6: error: cannot find symbol J0ptionPane.showMessageDialog(null, "Hello, world!"); …

Member Avatar for SkateX
0
224
Member Avatar for Issahaku Adams
Member Avatar for 011088
Member Avatar for Cripop

Hey there everyone, I am currently working on and Assignment that is due tonight and I feel like I am close but can not exactly get to the end. I would appreciate any feedback possible. Kinda stuck at the moment. ---Modify the Inventory Program to use a GUI. The GUI …

Member Avatar for JamesCherrill
0
234
Member Avatar for iamcreasy

According to JLS, the [grammer](http://docs.oracle.com/javase/specs/jls/se8/html/jls-14.html#jls-14.14.1) of basic for statement is for ( [ForInit] ; [Expression] ; [ForUpdate] ) Statement It's also said on the JLS that 'The Expression must have type boolean or Boolean , or a compile-time error occurs.' So to check if the syntax is valid, the parser …

Member Avatar for JamesCherrill
0
175
Member Avatar for rob.sigmon.1

I am new to java programming and I have to write an inventory program that can hold multiple items. I have my code from week 1 but I do not know how to write in the ability to hold multiple inventory items. Can anyone help with this?

Member Avatar for pookie47
0
551
Member Avatar for vivekH
Member Avatar for rubberman
-1
231
Member Avatar for Hongero

Give definition of two classes, Customer and Seller, whose objects are records for a Sale. Customer and seller will be derived from the Person class with member variable for Person’s name. A customer record has the customer’s name (inherited from the class Person) while a Seller object has a Seller’s …

Member Avatar for JamesCherrill
-2
194
Member Avatar for SammyT79

'Ello I just completed my final individual assignment for my first java programming course. This is what I want to do and learning how to do it is what brought me to school. Unfortunately my class facilitator has decided that it is not in his best interest to contribute to …

Member Avatar for Traevel
0
358
Member Avatar for didyone

hello guys. I would like to ask you a help of how i can remote server and view files located on it using JTree in java.

Member Avatar for JamesCherrill
0
381
Member Avatar for Hongero

Based on types of riding bicycles can be classified into different categories such as Touring bike, Mountain bike, cruising bike and so on. Though there are different bicycles there are some properties shared among many of them, for instance each them has its own color, number of gears, brand. On …

Member Avatar for peter_budo
-2
134
Member Avatar for aeinstein

Hi All, I would greatly appreciate considered recommendations on books pertaining to HTML5, CSS and Javascript, for starters, either as dedicated subject reference or in some combination. If a combintion of these subjects are addressed in a given book then additional subject matter (such as game applications, jQuery, mobile applications, …

Member Avatar for iMadhusanka
0
431
Member Avatar for muhammad_74

Hi,programmers Need pdf book to learn java as 14 year old student...! My 5 months holidays are coming and i want an easy pdf book for learning java.Just give me easy book because i am completely new to java.And i dont need the words like 'dont rush into programming' or …

Member Avatar for Traevel
0
219
Member Avatar for Fahad_5

My project is finished but lecturer demands everything in one file i created multiple to help ease everything and now cant combine them

Member Avatar for stultuske
0
118
Member Avatar for CodeWarrior14

I'm working on a server and client program. Data will be exchanged between the server and client. This data will be encrypted. The server will always generate the salt and the IV. The client will receive the salt and IV and use it to encrypt / decrypt the data that …

Member Avatar for CodeWarrior14
0
3K
Member Avatar for Gl753

I want to output the annual salary for each employee individually but I'm not sure how. The way it is now it just pops up as one large box. Any help is much appreciated :) public static void main(String[] args) { // TODO code application logic here String increase, Salary, …

Member Avatar for Nation
0
219
Member Avatar for Nation

I am using a JTabbedPane with three buttons. The program is running fine except that the buttons remains small even if you resize the window. Is there a way of setPrefferedSize for them? here is the code if it helps: public final class JTabbedPaneDemo { JFrame frame; JTabbedPane pane; JPanel …

Member Avatar for Nation
0
1K
Member Avatar for sameer.i.w

hi I'am making a new runescape private server I need help by a good coder knows about rsps to help me coding it

Member Avatar for JamesCherrill
-1
86
Member Avatar for Stefce

Can anyone tell me what im doing wrong here ? I just want to detect the last word of the sentence and if not found to show "Not found." here is the code: String[] items = { "Iphone", "Computer", "Car" }; String field = Field.getText(); String text = "I want …

Member Avatar for Slavi
0
2K
Member Avatar for CodeWarrior14

I improved my AES encryption code, I now generate a key from a password of any length. But now I dont know if I'm generating a 128, 192 or 256 bit AES key. Here is my code: import javax.crypto.spec.PBEKeySpec; import javax.crypto.spec.PBEParameterSpec; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.Cipher; public class AESCipher …

Member Avatar for CodeWarrior14
0
3K
Member Avatar for alexdoc9999

Hello All This is probably an easy one (I hope). I have a JLabel whose text I am trying to right justify. Should be <labelname>.setHorizontalTextPosition(JLabel.RIGHT). Simple, right? (wrong). It does nothing to the text on the label. The text just shows up with it's default left justification. However, when I …

Member Avatar for Joao_3
0
854

The End.