32,199 Topics
| |
hi i am sadiq doing my final yaer in the disciple of information technology ... As i am interested in doing my final year project in java ....... i need the suggestion to select a interesting project which should impress the company.. i also need the project description........... | |
I don't know how to write marquee with links in java application.If someone knows, pls help me. | |
Hi all, I am using maven for building deployable artifacts. Whenever I run mvn deploy command, error occurs. I am also using nexus for the actual artifact deployment. Cause: Class 'org.apache.maven.artifact.repository.ArtifactRepository' cannot be instantiated Both pom.xml and settings.xml are modified accordingly. No issue about it. But still I am getting … | |
oldAccount text file is Nicholas, Diana, Eric,Andy, Alex , AMy CurrentAccount text file is Andy Alex Amy Kelvin cherry Betty import java.util.*; import java.io.*; public class Example2 { public static void main(String[]args) throws IOException { System.out.print (" Old Account is: "); System.out.println(); TreeSet<String> oldAcc = new TreeSet<String>(); Scanner oldacc = … | |
Hi there, I am new in java and some basic help would be appreciated. e.g 1-What's the out put of; double number = (1/3)*3; System.out.println("(1/3)*3 is equal to " + number); What's missing? 2- Convert each of the following mathematical formula to java expression; 3x and 3x+y Thank you in … | |
I used below code to extract year from a date object. [CODE] java.util.Date ye = new java.util.Date(); int y = ye.getYear(); System.out.println(y); [/CODE] But it prints ,109 How I get the year as 2009?? | |
I am using emma-2.1.jar for getting code coverage for my java web application. For generating the coverage.ec file, every time I need to shutdown the tomcat server. But I heard that version 2.1 gives ctl tool for getting coverage.ec file without shutting down the server. But I don't know how … | |
So i've converted a float array and int array into binary number. The problem is when I print out the binary values, java cuts some of the digits off depending on how much the value is. I've found this to be a problem with the int value because they don't … | |
Hey all I'm writing a rasterizer at the moment, and one of the basic transformations you can perform is rotation. This demands the use of trig functions. However, when rotating a cube, my cube slowly shrinks. Is this s result of loss of accuracy in Math.sin() and Math.cos()? Or is … | |
I am working on an assignment and I need a bit of help. I am using a double linked list to find roots of polynomials, the list has a trailer node only. I can't seem to get it to create a list. I figure I am just missing something small … | |
Evening Folks, Having a bit of a problem with somthing i am trying to code, wondering if anyone here can help.... The basic idea is that i am trying to build a Priority Queue of binary tree nodes so that they are stored in ascending order by a number stored … | |
Hi: I have to write a program generating the fibonacci sequence based on the length desired by the user. I'm using arrays and methods too. So I have to do one method to generate the sequence and another to print the other method. So far so good, except the last … | |
Hi, I just started learning java, so my skills are quite limited and I have yet to learn many many concepts. Right now, I am trying to create a hangman game(which as you can see is still incomplete). The problem I get is, the word being "mystery" when I guess … | |
Hi. I´m trying to change a file-extension, but it doesn´t seem to work. When i use System.out.print() it says the new name, but the file in my computer doesn´t change. My code: [CODE]public String changefileextension(String filename) { int lastDot = filename.lastIndexOf("."); if (lastDot != -1) { filename= filename.substring(0, lastDot) + … | |
I am trying to do RMI Server-Client communication, but I get these exceptions when I try to run client: [CODE] java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1371 connect,resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323) at java.security.AccessController.checkPermission(AccessController.java:546) at java.lang.SecurityManager.checkPermission(SecurityManager.java:532) at java.lang.SecurityManager.checkConnect(SecurityManager.java:1034) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:475) at java.net.Socket.<init>(Socket.java:372) at java.net.Socket.<init>(Socket.java:186) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198) … | |
this method checks if the array needs more slots , if it does it adds 5 more slots to the original array while keeping the same content and order of the content in the array how could u do this in a method that returns true and recieves add number … | |
I want to make marquee link in jpanel.I meet a problem at paintComponent(Graphic g){ g.drawString(text,x,y); } I want to replace JTextField at the "text".Who can I help me?whoever,thank in advance. | |
Hi can anybody tell me any link from where i can download a small jsp servelt project and deploy on my machine and get to know the code and understand it... i have read the basics of jsp servelts and need a sample project to understand a small project to … | |
please help me to Design and implement an application that reads an integer value representing a year from the user. The purpose of the program is to determine if the year is a leap year (and therefore has 29 days in February) in the Gregorian calender. A year is a … | |
please i really need the source code for spreadsheet development | |
HI Please tell me how to create a new pdf file by merging two different pdf files dynamically in java ... please help me out thanks in advance.. | |
[CODE] tdate= new JTextField(); tdate.setBounds(200,25,134,20); java.util.Date date = new java.util.Date(); DateFormat df = DateFormat.getDateInstance(); String s = df.format(date); a = s.split(" "); a2 = a[1].split(","); //a[0]=oct , a[1]=27, , a[2]=2009 , a2[0]=27 , int mon=0; if(a[0].equalsIgnoreCase("jan")){ mon=01; }else if(a[0].equalsIgnoreCase("feb")){ mon=02; }else if(a[0].equalsIgnoreCase("mar")){ mon=03; }else if(a[0].equalsIgnoreCase("apr")){ mon=04; }else if(a[0].equalsIgnoreCase("may")){ mon=05; }else … | |
it checks if the array needs more slots , if it does it adds 5 more slots to the original array while keeping the same content and order of the array how could u do this in a method that returns true and recieves add number to put in the … | |
it checks if the array needs more slots , if it does it adds 5 more slots to the original array while keeping the same content and order of the array how could u do this in a method that returns true and recieves add number to put in the … | |
I have to write a program to censor a string. Whenever I run the program, it works fine the first time, then stops progressing the second time after entering the bad word. I don't get what the problem is. PLease help: java.util.Scanner; public class stringCensorRunner { /** * @param args … | |
Ok I have done the main section of my MergeSort program. I have to accept 10 integers and put them into a list. I having trouble with inserting user input into a list. Can anyone help? [CODE]import java.util.Scanner; import java.util.LinkedList; import java.util.*; public class mergesort{ public static class lp{ int … | |
i am trying to make a program that takes an object oriented approach to calculating the miles per gallon that your car gets. this is early in the process an i am aware that alot of stuff is missing. i am just trying to get it to work enough that … | |
Heya guys. I'm having a real problem with one of the examples on my java homework and was hoping one of you guys/gals could help. I need to write a program that allows the input of five numbers. Then the final output line(s) need to say which is the highest … | |
I have to write a program that diaplys a tic tac toe board with random x's and o's. I have having severe issues with the random part. I also dont know what to put for arguments in the JButton methods, but I think my issues are realted. Any and all … | |
Does someone have the solution for this? I know this isn't homework serice I have no idea where to start off....... I don't want a game of life applet, just simple codes that can compile and run. pm, post if you do. thanks so much. Can someone help me make … |
The End.