35,619 Topics
![]() | |
I am new for struts framework. Now i am in need of learning struts2 with ajax(dojo) which i need to implement in forthcoming project work. So anybody can you please provide me or direct me by giving correct website link where i can learn struts2 with ajax(using dojo library). I … | |
I have been stuck on this program for MANY DAYS and I really need help. I am a total NOOB! I don't know what more to do. I am far too confused. THIS IS WHAT MY PROGRAM SHOULD OUTPUT: Play the game of Precaution. Try and create as many unique … | |
HI I am new to regex, could anyone help me in finding the java code using regex: My input string is : MyData 68309486 Bob I want to fetch only the digits in sequence like 68309486. PLz help me!!! | |
Hey guys! I am kind of new to Java and am having issues understanding why this code will not run. Any advise would be greatly appreciated! Thanks in advance! [CODE] // Phone.java // Program creates a GUI that resembles a phone with functionality. import java.awt.*; import java.awt.GridLayout; import java.awt.event.*; import … | |
I don't know am i asking right question or not but my question is: I want to create a simple search site so I've team with different jobs. I have its database part to handle. I should create its database and i have not idea what should i do. I'm … | |
So when I compile it says i'm missing an if statement at line 38/39 but im using nested else if's and when I take it out it causes more errors. [CODE]import java.util.*; public class lhlBanking { static final double servicecharge_savings = 10.00; static final double servicecharge_checking = 25.00; static final … | |
Hey guys! I'm new to java, I have to write a program using a linked list, that will prompt a user to enter 10 names, and display them reversed. But is has to be a GUI. Any idea where i can start, or give me some clues, i would really … | |
Hello friends..! I tried to implement HeapSort algorithm in Java. but I've got some problems. First I should say that I have tried to implement the algorithm mentioned in the book "Introduction to Algorithm". the first question is how we can maintain the heap size? The book doesn't help with … | |
Hi hi What would I add to this code in order for it to pick a random word from the txt file? [CODE]try{ RandomAccessFile raf = new RandomAccessFile("Words.txt", "rw"); guessme = ""; while ((guessme = raf.readLine()) !=null){ guessme.toUpperCase(); } }[/CODE] Help is much appreciated! | |
my assignment was to create a calculator using either if statements ir switch methosd i opted for the switch method. everythign compiles but when I type in two integers this is what comes up:Enter two integers to be calculated (separate using space): 2 3 Exception in thread "main" java.lang.NumberFormatException: For … | |
So i had to write a program that uses these functions to add, subtract, multiply and see if the numbers equal each other. and also You must create a way to keep track of the relationships between friends, the spouses, the siblings, the children of the men and women. attached … | |
Hello I have created a multi tabbed JDesktopPane that will load 5 different configurations depending on the profile of the user logged in that has dozens of forms And dozens of interactive JInternalFrames, JList, JTables, JTrees and a complete unique file system that is created for each new user sorted … | |
I am new to Struts I have jsp file combined with servlet and jsp(jsp tags) i need to separate them according to struts 1.0 standards Please tell me the way i can do or give me some tutorials or examples Please tell me wqat need to separe and how here … | |
Hello, I have this code that's giving me some problems: [CODE]import java.util.Scanner; class Bæreevne{ public static void main(String[] args) { int avstand, vektTre, vektBetong; Scanner tastatur = new Scanner(System.in); System.out.print("Oppgi antall meter mellom søylene"); avstand = tastatur.nextInt(); vektTre = 3000 - 20*avstand*avstand; vektBetong = 7000 - 80*avstand*avstand; if (vektTre > … | |
![]() | This is my first GUI program in Java. If finds the day of the week for any given date which is after 1 January 1900. |
i want to convert Convert english language to hindi or vice versa in jsp or servlet please help me | |
I will be interviewed Monday or somewhere along the school week, to take an IB Computer Science course. I told the teacher that the programming class I had was a bit too essay and told her I had experience in C++, C# , VB, and python (basic). But I will … | |
Hi this is my first post, but I've lurked for a while usually finding answers to my questions in other threads, I couldn't find this one so I broke my posting cherry to ask. I know I'm missing something, probably really simple, but possibly I'm doing this completely wrong. I'm … | |
iam building a training set for spam filtering using java,training set data is given as words in text files in one folder,but im unable to debug whats going wrong in java collections [CODE]/* *folder part 1 conatins various text files having name format * **spmsg***.txt and ***legit***.txt e.g 11927legit569.txt ,106127spmsgc26 … | |
Well I just got a new latop with windows 7 and downloaded textpad 5 to do my java homework. At first I had issues just trying to compile but then found out that i needed to point textpad to javac.exe for it to compile. Now my problem is i cant … | |
I have to calculate the number of days between two dates the hard way. I know there is already a way to do this with an existing package and such but I have to do it within a single method "daysBetween" without altering any other part of the code. The … | |
I'm having trouble understanding the binarySearch method in the Arrays class when using an Object array. Is it possible to use this method to search for a specific field within an object in an object array? For example, if my Object array is an array of Person objects, each with … | |
Hi im trying to make a program that passes an array to a method. the method then finds the smallest number in the array and passes that number back to the main where its printed out. I am getting an error saying: "error: number cannot be resolved to a variable". … | |
I am trying to get this to work and am stuck. I run a JUnit test and get a few failures. Can someone show me the way to make this work? [CODE] /** * int numberOf(String s, String characters) * * Returns the number of times any of the chars … | |
Not asking for code, but I'm wondering if anyone can give me some advice and pointers for writing a code that reverses an inputted int, without using the string reverse. | |
Hi, I am getting an error "Illegal Start of Expression" on the following code: [CODE] obj.NoOfJumps(1, 2, 3, {1,2,3}); [/CODE] Here, NoOfJumps is a method defined in a class which does not have the main method. This method accepts 4 arguments namely 1)Integer 2)Integer 3)Integer 4)Integer Array Can someone please … | |
Hi! I am thinking of starting a program for a java enabled phones or smartphones... I am a beginner there for i don't have advanced knowledge of such programming... So heres my requirements; 1.the code should be able to run in netbeans 2.step by step process with explaination for understanding … | |
![]() | I'm working on a quicksort class, but I'm required to get the pivot multiple ways (last value, median of 3, and median of 5). Getting the median of 3 is easy enough with a few if statements, but I'm having trouble figuring out how to get a median of 5 … |
So I've made a game called HangMan, but it still needs the finishing touches. Anyways, a bit about the game... A JFrame shows 26 buttons for the letters of the alphabet and a whole set of other buttons to make up empty slots (they eventually will be filled in everytime … | |
I don't know how to use Notify and wait in my program but I am required to. The point of my program is that there are two threads, one which assigns the inputted object to the numbers 1-10 and another that reads them. Could anyone help. [CODE] package vairables; public … |
The End.