32,204 Topics
| |
Hey guys, I have tried for 3 days now, tried so many forums but help, but still i cannot get the help. I need help from this forum, because i have heard the members are very smart. Basicaly i have a code for a game. The point is that the … | |
Hey, So, in our book (I'm doing them for practice, I don't know if we have to actually do them), it says to display the pattern: [CODE] J A V V A J A A V V A A J J AAAAA V V AAAAA JJ A A V A … | |
hi, im new to java and am trying to create a simple paint program, what i'm having difficulty with at the moment is creating a field that will remember the current shape the user has chosen, i really don't know too much about what i'm doing more trial and error … | |
Hello Friends, I Know Java, Sevlet, JSP JDBC Technologies very well. now i want to learn Struts,Hibernate, Spring my self. Please suggenst me any online resource or book for me that gives good explanation with sample applications. so that i can learn and devolop projects myself . thanks. | |
We have an exercise and it asks to create a program that will ask the user to initialize 2 character arrays, then compare the value of the variables(or the character array). My problem is with the initialization: I will create 2 char Arrays, then. How can I have the input … | |
hi, Currently i vame across a term "[B]POJO[/B]". I need to know somrthing about that, plz help me to know what is the purpose of using "POJO" in java? | |
[CODE]import java.util.*; public class sSfive { public static void main ( String[] args ) { Scanner nix = new Scanner ( System.in ); System.out.print ( "Enter interest rate: " ); float inInt = nix.nextFloat; System.out.println ( "" ); System.out.print ( "Enter number of year: " ); int inYear = nix.nextInt; … | |
Hey guys, I need some help again with this program I've been working on. Basically I'm trying to make it so that a user enters a year and then program prints if its a leap year or not. Here is what I have so far: [CODE]// LeapYear.java // Name public … | |
Hi, I have a problem that is shortest path problem. I use dijkstra algorithm but query has a time that is an hour on 280.000 node-graph. I have to reduce query time to 1 second. I try to find these way but I can not found any implementation of these … | |
hey guys , i'am just new to java EE , well i am pretty good at java SE , so please i want to know where i can start learning jsp and servlets and if there were books that is pretty simple to understand as i mentioned that i am … | |
Can someone work with me on this program. I will put the instructions first, then my code, then the errors [B]INSTRUCTIONS: [/B] Create a program to enter grades and calculate averages and letter grades. 1. Need a class which will contain: a. Student Name b. Student Grades (an array of … | |
I have been working with my final project for about 3 weeks now and its due by 10am tuesday. Currently I am receiveing cannot find symbol errors. I know this is something simple. Please help. [B]INSTRUCTIONS[/B] Create a program to enter grades and calculate averages and letter grades. 1. Need … | |
Once again, I found some code that seems to be doing something that I would like to try, but I get a Static Error when I try to run the code (apparently, I may be the only one). By the way, the code comes from the book, "Swing Hacks" By … | |
Hello, I'm a bit new here, and also quite new to java. I'm wondering how I would insert a print statement into the do while loop, if the while is false. [CODE] do { System.out.println("Enter number of years for the loan an in integer: "); numberOfYears = input.nextDouble(); System.out.println("Enter the … | |
Hello to all, I did not know how to entitle this post,since it is more of a logical problem,but it's connected to the writing of my objects to a file. So, my server expects connections from multiple clients. The clients vote for the candidates offered to them by a menu, … | |
I am trying to build a very quick invoice type program, and I can't seem to get the final total to print. I am calling the function for it, but it's not printing anything to the screen...any suggestions? [code] public class Invoice { private double Total; //Constructor public Invoice( double … | |
Hi people, i was wondering If you could help me. I have a personal project as a java program, and I wish to develop my own Look and Feel. It will be rather simplistic (like a metro ui). Is a Look and Feel the right way to be going about … | |
Please help with this problem... I'm still learning java and i got stuck with a problem posted through our school campus... this is the one....and it's supposed to be the sequential structure.. Write a program that classifies a given amount of money in dollars. The program outputs a report listing … | |
[CODE] import java.util.*; public class Employee{ private String emplo []; private int count; private int size=10; private String emp; public Employee(int size){ String [] emplo=new String [10]; count=0; } public Employee(){ this(10); } public boolean isFull(){ return count== emplo.length; } public boolean isEmpty(){ return count==0; } public void add(int x){ … | |
i read this on the net. and i cant understand why i have this mistake? [QUOTE]Thrown when an application attempts to use null in a case where an object is required. These include: * Calling the instance method of a null object. * Accessing or modifying the field of a … | |
Hi! I've spent 4 hours trying to read the data from file to ArrayList and then to JTable, but still cannot solve one problem. I have the following class UserDataRow, where the data about a user is described. [CODE] public class UserDataRow { public String regnumber; public String firstname; public … | |
Hi Everyone! I have a problem with reading data from the txt file into the 2d array. In general, the above code is workable. The only thing that doesn't work is: userdata[row][j] = tokens[j]; The problem is that my array "userdata" gets values "null". However, if I replace this code … | |
[CODE] import java.util.*; public class sSone { public static void main ( String[] args ) { Scanner scan = new Scanner ( System.in ); System.out.print ( "Enter an integer number from 0-128" ); int inInt = scan.nextInt [/CODE] PURPOSE: program that receives an integer number from 0-128 and displays the … | |
I need to create a list which contains objects of a particular class. I am having problem in retrieving the objects back from the list. Here is my code for insertion into list- import java.util.LinkedList; import java.util.ListIterator; public class listchek { int i; String name; public listchek(int k, String n) … | |
Hi! I have a code that generates the table with 6 columns, and 6 textfields. Textfields are used to filter the table, and they are assigned to columns. Everything works normally, but looks badly. Attached you will find a picture to see what I mean. I don't like that textfields … | |
(BEGINNER) problem: i need a program that reads a 4 digit integer and adds all the digits in the integer. example: input=1234, output==10 | |
hey am creating a quiz(examination) which randomly selects questions from a database,and each question has 4 options,out of which 1 is correct.....also i need to show the final result of the number of ques correctly answered,wrong and those not attempted.... im at loss at MySql...don't know how the design of … | |
I have completed a program and it compiles fine. When I run it, it seems to run fine. The only thing is that I am missing element data for two of the objects I am printing out in the text area of this JFrame. I an array called printerProduct[5], that … | |
Hello Im going to make a program that is much like a calender. I havent started coding anything yet because I would like some advice on how to make the program "alive". - I wont it to be able to start up automatically when windows starts. - Run in the … | |
I know how to write messages and save it as a .txt file (using Input/Output streams). What I want to do now is to be able to click a button and have notepad open the .txt file. How can I do this? |
The End.