36,051 Topics

Member Avatar for
Member Avatar for carepanther

hej I need to Construct a loan account for a small company this is the info that is givin * You can borrow a maximum of 1,000,000 kr • There shall be no redemption. The entire loan amount + accrued interest payable in one sum at the end of the …

Member Avatar for peter_budo
0
354
Member Avatar for Sreerajmnr

I'm a student, now i'm developing a pc application using which require to access the net for sending SMSes.My code uses http connection to way2sms site for this.I could send SMSes from it when the code is opened in JCreator.But when using Eclipse it shows an error "java.net.SocketException: Permission denied: …

0
50
Member Avatar for GTJava

[CODE] import java.util.Scanner; public class primenumbertest { public boolean isPrime(int num){ int x; Scanner input = new Scanner(System.in); System.out.print("Enter a number to find out if it's prime or not (greater than 1): "); num = input.nextInt(); if (num == 2) return true; // check for divisible by all even number …

Member Avatar for GTJava
0
123
Member Avatar for dippy78

Please help me with code. I have create WebApplication/HelloServlet and Midlet using netbean 6.7 When i access Servlet using IE is see "Hello World!" But when i access the same from emulator calling it in Midlet. i see following code on my emulator screen. Is this the correct output? [code=html] …

Member Avatar for dippy78
0
133
Member Avatar for Sandar Khin

Hello, How can I change font style of ToolTipText and Dialog's text in java application program?Pls help me.Thank in advance.

Member Avatar for peter_budo
0
71
Member Avatar for cute.sridhar

Hi, I am trying Serial Port Communication in Linux using Javacomm API and RxTx. I'm configured RxTx as per the documentation. But I received an error as follows, Exception in thread "main" java.lang.UnsatisfiedLinkError:com.sun.comm.SunrayInfo.isSessionActive()Z. Would you help me please..

Member Avatar for gunjannigam
0
216
Member Avatar for dabears84

Hello, I need help with an assignment. I am lost and don't know where to get started. See attached. Thanks.

Member Avatar for P00dle
0
77
Member Avatar for ijerald

Currently i am developing a discussion forum like daniweb with struts and hibernate for that i need a pagination using the same (struts and hibernate). Actually i tried pagination using display tag in struts but not using hibernate and but it is not suitable for my requirement. If you have …

0
43
Member Avatar for Ryujin89

With assistance from others, I have an program that allows a user to input their employee name and number and then their hourly wage and their total number of regular hours and overtime hours. The program I need assistance with reads in that file, adds a new field at the …

Member Avatar for Ryujin89
0
308
Member Avatar for meowbits

The code not listed has an arraylist named unsorted size 1000, and another array named keys_Array, size 100. Every element from the keys_Array was picked from the unsorted, so they should always be found. Problem I'm having is that it doesn't print anything. It just reports a msg from the …

Member Avatar for meowbits
0
126
Member Avatar for wild_angel

I have 2 buttons in my form. The first button to fill the JTable from .xls file and the second button to save the content of the table to database (MySql). I haven't figure out yet the way to save data from JTable to MySql. :confused: So, can anybody help …

Member Avatar for wild_angel
0
110
Member Avatar for ceyesuma

The name of this question is seperatin_view_model Hello and Thank you in advance for any assistance. [B] System info: [/B] Netbeans,MySql,glassfish, [B] The Purpose of this post is: [/B] to have someone look at my exel file where my question concerning packaging,and beans and faces-conf.xml and the concept of seperation …

Member Avatar for ceyesuma
0
95
Member Avatar for meowbits

I'm trying to randomly select 100 values from an array of 1000. How do I do this? Also, after selection, how can I add these 100 values into a new array. Do I need to do something like this with a loop? [CODE]for (x = 0; x < 100; x++){ …

Member Avatar for meowbits
0
2K
Member Avatar for Bluesilver

So basically my assignment is to write a few Java methods that contain arrays in the parameters, and then test each one using a main method within the same class. However, I can't figure out how to invoke the methods... I keep getting a compiler error that states "join(char[]) in …

Member Avatar for darkagn
0
194
Member Avatar for kingsboro2008

This is the first time I've posted a question so forgive me if I become vague. I will try my best to be as detailed as possible. I am creating a card game in Java that compares card hit points. The hit points are accessed from an input file. The …

Member Avatar for kingsboro2008
0
97
Member Avatar for ifezuec

how do i use netbeans to compile and run java. it seems complicated or rather direct me to a site

Member Avatar for Ezzaral
0
115
Member Avatar for candoc

If i am writing a java game and it has multiple people playing together, is there a way to find out how many people are at the same table/room playing?

-1
39
Member Avatar for jnthn205

Hello. For an assignment we have been given the shell of a tic tac toe game in java. We are to fix a few things that is wrong with it. here is the main class: [code] public class TicTacToeGameJonathanSilverberg { public static final int board_size = 3; // number of …

Member Avatar for jnthn205
-1
268
Member Avatar for meowbits

I'm trying to print the values but it just comes out as one string on binary numbers. What do I need to change? Thanks! [CODE]import java.util.*; public class lab5 { public static void main(String[] args) { Random random = new Random(); // int [] unsorted_array = new int [1000]; // …

Member Avatar for meowbits
0
77
Member Avatar for buffonomics

Java has matured in terms of UI presentation. search project Aerith for examples on some of the neat things that can be done when mixing JOGL, Swing and Java2d. However, it seems these only work on windows. Mac is still strangely alienated from the Java revolution, cuz Steve still strangely …

Member Avatar for buffonomics
0
168
Member Avatar for babylonlion

Hello, I need to re size the square whenever I move the slider; how can I accomplish that? Your time and effort are appreciated. [CODE] import java.awt.*; import java.awt.geom.*; import javax.swing.*; import javax.swing.event.*; public class SquareSliderTest{ public static void main(String[] args){ EventQueue.invokeLater(new Runnable(){ public void run(){ SliderFrame frame = new …

Member Avatar for babylonlion
0
122
Member Avatar for vcm

Hi guys, Im complete lost as to how to create a static Binary Tree object. My assignment states that I have to "Write a static method named ex1() that returns a BinaryTree object representing the expression (2 + 4) * 8" here is the code i have so far BinaryTree.java …

0
58
Member Avatar for sciwizeh

Hello All, it's been a while since I've had a question for you all. I'm trying to write a paint app, I've done so before, but this time I decided to add Layers, and I wanted a JList of the layers, I wrote a cell renderer, that not only renders …

Member Avatar for Ezzaral
0
148
Member Avatar for StarZ

hi, I've recently downloaded Java on my computer I think I downloaded the "windows app" one. When I try to launch drjava, this errors pops up and it says: An error occurred in Dr Java: java.lang.ArrayIndexOutOfBoundsExceptions:-1 You may wish to save all your work and restart Dr Java. I've downloaded …

Member Avatar for masijade
0
259
Member Avatar for madhu28

i have a list of size 3 in my controller i say int noofcards=List1.size(); which returns me the value 3 i want to print this value in my jsp. How do i do it ? i tried this way Controller [code=java]request.setAttribute("noofcards",noofcards);[/code] jsp [code=JSP]<%= request.getAttribute("noofcards"); %>[/code] Thanks in Advance

Member Avatar for ~s.o.s~
0
58
Member Avatar for 00musdan

Hello everyone i know very little of Java and need help with a project. If anyone could send some code or even help explain where i should start i would very much appreciate it. This is what the teacher gave us for the project outline on what the code should …

Member Avatar for 00musdan
0
163
Member Avatar for littleladyclair

hi ya! really hope u can help! ive taken on a computer course that is meant to teach me the basics of computing, and while i can understad databases and html, for some reason they have given us object orientated programming and i havent a clue!! ive spend alot of …

Member Avatar for javaAddict
0
548
Member Avatar for saadismail85

[CODE]import java.util.Scanner; public class Draw { public static void main(String[] args) { Scanner input = new Scanner (System.in); int width = 0; int height = 0; int select; System.out.print("Enter Width :"); width = input.nextInt(); System.out.print("Enter Height :"); height = input.nextInt(); System.out.println("============================================="); System.out.println("| SELECTION |"); System.out.println("|===========================================|"); System.out.println("| Option : |"); System.out.println("| …

0
93
Member Avatar for Agni

Hi, I'm writing my first RMI application, it's an auction system. At the end of the auction period for a particular item the server sends a 'callback' to the winning client telling him that he's won. It works fine till here, but after that i get this exception. It shows …

0
97
Member Avatar for begforcode

[COLOR="Green"]Hello I'm new to Java. I wanted to make a card game in which i want to overlap those cards. I just want to know how to overlap cards, like "solitaire" or "hearts" card games. Kindly help... I'll be grateful.[/COLOR]

Member Avatar for gangsta1903
0
88
Member Avatar for ceyesuma

The name of this question is oracle project Hello and Thank you in advance for any assistance. [B] System info: [/B] I presently use Netbeans6.7,MySQL,glassfish to work with learning JSF and java apps etc. [B] The Purpose of this post is: [/B] I recently was presented with a tutorial to …

Member Avatar for ceyesuma
0
180
Member Avatar for gunjannigam

I want to implement the following Task 1) Read till end of file 2) In each Line of the file there is a time mentioned. You need no call a method( code of which I have already written) 3)Wait for the time mentioned in that line of file and then …

Member Avatar for javaAddict
0
86
Member Avatar for Bakudan

Hey guys I am requesting u to help me with this programming assignement it is all about implementing a sequence counter given simple counter code For more information view the attachements Thanks[ICODE][/ICODE] [CODE] /* * Copyright (c) 1997,98,99,2000 E.J.Dijkstra / R.Smedinga. All Rights Reserved. * * Permission to use, copy, …

0
51
Member Avatar for saadismail85

Please look at the code below and follow with my questions: import java.util.Scanner; public class CaseGrade { public static void main(String[] args) { Scanner input = new Scanner (System.in); String name = null ; int grade = 0; String exellent = "Exellent :"; String veryGgood ="Very Good :"; String good="Good …

Member Avatar for masijade
-1
161
Member Avatar for shashikant.v

hi friends when i am running my programe on cmd in C:\Programe File\jdk1.6.0_14\bin I got the message that file name.java uses or overrides a deprecated API . Recompile with -Xlint: deprecation for details . what it meant how it will solved . please help me thanks in advance for reply …

Member Avatar for masijade
0
204
Member Avatar for hallwayantics

I'm a first time Java programmer and I'm having trouble compiling/running code. I installed jdk and I'm using windows XP MCE. I can get javac.exe to create a .class file but when I try running it with java.exe I get an error Please help. Thanks! [URL="http://img121.imageshack.us/img121/6788/javanowork.jpg"]http://img121.imageshack.us/img121/6788/javanowork.jpg[/URL]

Member Avatar for Makoto1981
0
192
Member Avatar for musthafa.aj

java socket... Hi! How do establish TCP socket over firewall using java RMI.... already i coded it but it has not been working if firewall(MS XP) IS ON...if it is OFF its fine...

0
63
Member Avatar for glendavis

I have a servlet that gets a parameter that tells it which operation to carry out. in the servlet, i have if statements that check if the parameter is a certain number (1,2,3). I use getParameter to get the parameter as a string but somehow it does not go into …

Member Avatar for masijade
0
104
Member Avatar for swapnilb1

Hi to all friends, I am working on c,c++,vc++ for 1 year.I completed DAC of CDAC in which i learn c++,java,j2ee,c#.net,asp.net,oracle and web tech(like html,dhtml,xml,ajax). Now i want to move from c++ to another technology...so what will be good([B]for getting job easily)[/B]..bcoz i know both(.net & java) but (i am …

Member Avatar for swapnilb1
0
163
Member Avatar for ceyesuma

The name of this question is Hello and Thank you in advance for any assistance. [B] System info: [/B] JSF,netbeans6.7 [B] The Purpose of this post is: [/B] My first successful JSF app. If someone wants to check it out. Found at: [url]http://cid-b5cb457363230793.skydrive.live.com/self.aspx/.Public/guessNumber.zip[/url] [B] The functionality of this code is: …

Member Avatar for ceyesuma
0
145
Member Avatar for twerk

Hey, Im implementing a binary tree in a project of mine and I'm currently writing a remove method. lets say my tree is this 5 / 4 and lets say I want to remove 4. My nodes attriubtes are the key, left and right children. Initially, the left and right …

0
47
Member Avatar for nstern2

I am having a little problem getting the data out of my array. It's probably something simple that I am missing but here is my code.[CODE]public class Search Sort { static Scanner cons = new Scanner(System.in); public static void main(String[] args) { String[] mov = new String[3]; for(int i = …

Member Avatar for Grn Xtrm
0
81
Member Avatar for cwarn23

Hi and I have been working on a simple problem but can't seem to find any solution and have tried browsing the net. My question is how do I append to an array. Below is the code I tried but still doesn't work. [CODE]String[] names={""}; if (charcheck1==true) { String[] chartmp={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"}; …

Member Avatar for cwarn23
1
353
Member Avatar for SteveTheRed

Hello, I'm refactoring a C++ program into a Java program (yes, it's homework). I have a problem where I add objects to an ArrayList of type Student, but when I try to access the objects, every valid index returns what should be only in the last element. For the sake …

Member Avatar for SteveTheRed
0
1K
Member Avatar for llemes4011

Hi everyone, I decided that I wanted to try to write a graphics library. Yes, I know Java already has one, I just thought that it would be fun to try. I looked around, but couldn't find anything on the subject. I want it to be for Java, but I'm …

Member Avatar for llemes4011
0
93
Member Avatar for saadismail85

[B][COLOR="Red"]mmm.... i think its good [/COLOR][/B] [CODE] import java.util.Scanner; public class Studentgrade { public static void main(String[] args) { int num_of_student ; Scanner input = new Scanner(System.in); System.out.println("Enter the number of Student :"); num_of_student = input.nextInt(); String []name = new String [num_of_student] ; int array[] = new int [num_of_student]; String …

Member Avatar for RunTimeError
0
321
Member Avatar for Karenai

Hi! For my assignment, I was required to implement an ordered dictionary using a binary search tree. I have most of it done, but I'm stuck on a this one problem. My program needs to print the word from the dictionary that alphabetically follows the specified word (aka the successor). …

0
37
Member Avatar for hippo120190

hey people.i am new to java and i am currently constructing a hangman game. the game asks for the user to enter a word(3 or more characters long). then it prompts the user to enter a single character or the complete word in a message input dialog which contains the …

Member Avatar for RunTimeError
0
96
Member Avatar for ronny22

hi am stuck im trying to figure out how i can find the majority of numbers say in a list with the time complexity of O(n) say i have a given list of n elements finding all elements on the list that occur more then n/4 time. how would i …

Member Avatar for ronny22
0
94
Member Avatar for endisbegun

For my assignment, I have to "Write a program that reads integers, one per line, and displays their sum. Also, display all the numbers read, each with an annotation giving its percentage contribution to the sum. Use a method that takes the entire array as one argument and returns the …

Member Avatar for endisbegun
1
862

The End.