32,199 Topics
| |
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? | |
I have written some code that compares two "BufferedImage" rectangles by doing a pixel by pixel comparison. These BufferedImages are of "playing cards" with rounded corners so I would like to exclude those corner areas during the image comparison process since the varied background could cause the comparison to be … | |
I am writing a Java application that "passively" interacts with a Windows Desktop Application. What I mean when I say that it interacts "passively" is that I perform screen captures to determine the location of "buttons" displayed by this Desktop Application and I use "absolute" x and y coordinates to … | |
I am given dates in string format- Eg. 11/09/2010. (11-09-2010 not allowed) How can I convert it into integer dates? I am given two such dates in string format only and I want to find the no of days between them. | |
class Stars { public static void main(String args[]) { int c=1; for(int i=1;i<=10;i++) { for(int k=1;k<=c;k++) { if(k%2==0) System.out.print("*"); // else // System.out.print("*"); } System.out.println(); c+=2; } output: * ** *** **** ***** ****** ******* ******** ********* i cannot understand that what the function of variable "c" and how it … | |
HI ,how can i get the size of a JBUtton JLabel . I always get 0 when i use the getHeight or getWidth method . |
The End.