35,618 Topics
![]() | |
Hi there all, I really need help on this one, I went away for a wedding for a week and missed a week of work and now I have a practical due for 1:00 10 tomorrow and I got back today, but I managed to complete all of the programming … | |
![]() | Hello World! I am a new student to Java. and I find it interesting since I never programmed anything but struggling a bit. I have the book Java: How to program, 8th edition. and we started in loops today. and he asked us how to make int j = 1; … |
hello...... sir i have to make the program which get date of birth and give me result in term of how many year,months,days,hours,minutes and second old user is... i need the help... | |
Hi friends I have been developing a web application in mvc which is in need of using database mysql. I am suffering from the same problem we are discussing for the following code. I am collecting the data for the tables from a form. I had added mysql-connector-java-5.1.17.zip by right … | |
hi every1 i m new to website development. just learning it. i have made a code in which i access my database(MS Access). i m able to print the first record of the database on the page. but i m not able to go to next record which i want … | |
for my final year project i'm trying to do an IEEE project which titles as DATA LEAKAGE DETECTION SYSTEM..... Description : Aim of our project to develop Data leakage detection Model in which We study The distributor must assess the likelihood that the leaked data came from one or more … | |
Hi All, Im developing a sample app to build up my java skills. Im creating a Simple Chat application which uses jsp,Dwr,Java and jdbc and a feww other technologies to build the same. If i want to implement threading in some meaningful way to improve the performance of my app … | |
Hi all, I need to hide or change my jsp URL. i tried with following code with xml but still its not working.Any pls help me for this.. [code] <servlet> <servlet-name>User</servlet-name> <jsp-file>User.jsp</jsp-file> </servlet> <servlet-mapping> <servlet-name>User</servlet-name> <url-pattern>/UserPage</url-pattern> </servlet-mapping> [/code] | |
I am currently learning Java, I am using a book Java how to program 8th edition by the deitel and deitel company, and I was wondering I was researching about java and I found these out, Core java and j2ee. what do I really need to learn in order for … | |
Is there anyway to run a Java program through C/C++? (i.e.) When I run the C Program, the program must start and it must inturn run a java program and display its output... Im not talking about using Native interfaces and all. Not code interoperability. Just run the java class … | |
For programming we need editor , compiler and next one to rum??? help me woth third one... folks... best IDE for java programming ????? | |
this jsp consists of scriptlet tags so i need to remove the sriptlet to a action class pls tell me how to move to struts <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <%@ page import="java.util.*"%> <title>Course Administration</title> … | |
Hey guys I was wondering if I was doing this right or not. I am writing a program that asks for a grade like A, -A, B+, -B, B and so on. each letter grade is equal to a certain number like in a persons GPA, A = 4.0, -A … | |
[CODE]import java.util.Scanner; public class sum{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); System.out.print("Enter n: "); int n = scanner.nextInt(); System.out.print("Enter m: "); int m = scanner.nextInt(); int sum = 0; for(int i = 0; i<=n; i++){ for(int j = i+1; j<=n; j++){ sum = i * j; … | |
Hi there, I'm fairly new to java and I have a question about creating an array of objects for a class and allowing data entry for each individual object in the array. I'm a little confused on how to go about doing this correctly. As of right now I have … | |
Hello everyone, Im kinda having some trouble with my code and was hoping you guys could help me out. Here's what its supposed to do: have asteroids, shoot bullets, move, and have hyperspace (just a little warp to a random point on the screen) Here's what it does: the ship … | |
Hello all, I need a step by step spring tutorial since i am new to spring framework books seems to be more theoretical and i need a more practical tutorials , please help Thanks | |
[size="5"][size="4"]Dear experts, I am doing my assignment on finding how many numbers in [b]N[/b] digit satisfy [b]K[/b] requirement. However, when i am testing the code, i could compile it but i couldn't execute it. I am wondering if i made mistake in the [code]x = result + y; // add … | |
[CODE]public class Briefcase{ private int amount; private String face; private boolean isOpen = false; public Briefcase(int amount,int cNumber){ this.amount = amount; this.face = Integer.toString(cNumber); } public void removed(){ isOpen = true; face = "X"; } public boolean isRemoved(){ return isOpen; } public int getAmount(){ return amount; } public String toString(){ … | |
I can't seem to get my innerHTML to display my content. This works fine, if I was to put it all in one line. [CODE]document.getElementById('addedText').innerHTML = '<table><tr><td>'+"My text goes here"+'</tr></td></table>';[/CODE] If I was to break it up, which I wanted then nothing seem to show up. [CODE] document.getElementById('addedText').innerHTML = '<table><tr><td>'; … | |
This prints NULL: [CODE=Java]String sss = System.getSecurityManager() == null ? "NULL" : System.getSecurityManager().getClass().getName(); System.out.println(sss);[/CODE] And this throws exception: [CODE]ServerSocket serversocket = new ServerSocket(80);[/CODE] This one: [CODE]Exception in thread "main" java.lang.Error: java.net.BindException: Permission denied at httpserver.HTTPServer.main(HTTPServer.java:68) Caused by: java.net.BindException: Permission denied at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) at java.net.ServerSocket.bind(ServerSocket.java:328) at java.net.ServerSocket.<init>(ServerSocket.java:194) at … | |
hi i studied ur post in this link [url]http://www.daniweb.com/software-development/java/threads/118194[/url] but i m unable to edit the default table here is its code [CODE]jTable1 = new javax.swing.JTable(); [B]jTable1.setModel(= new javax.swing.table.DefaultTableModel([/B] new Object [][] { }, new String [] { "Book Name", "Author Name" } ) { Class[] types = new Class … | |
Hey all =] , I am having a few problems ending this coding homework and i would love if you could help me on how to solve this problem, well my problem is that i try to print the toStirng in my constructor class and for the months it prints … | |
Recently I've just finished my first term in college about java programming, and even before I started my First term in college I already know stuff about java, but to keep this short, all I want to know is where do I go now? what topic should I study? should … | |
i've been working on my minesweeper project and i seem to be running into a little trouble. My program compiles but my problem is setting the mines on my grid. I have used a random generator to set the positions but i dont know how to implement it on my … | |
Hello there. I'm making an airline ticket reservation program using Java and one of the features that I'll be using is a radio button and a combobox. How can I possibly link these two? particularly if the user clicks the "one-way-trip" button the combobox will get disabled. and when the … | |
Im a Junior in college now (Computer science Engineering). Im planning to start my Java certification. Im comfortable with programming in java. Im familiar with most common API and also with swing and Collections, Concurrency, etc. and also with OOPS concepts. So I thought I might take an entry level … | |
Need help with the program using counting sort that reads members name database reads standard input into ArrayList and writes a roster sorted with ID to standard output For example out put should be AK000001 Alex Kenny AR000002 Allison Richardson CK000001 Carlos King CR000002 Chris Richards | |
I have created the following code to display some records from a database : [code] <table id="productTable"> <c:forEach var="product" items="${categoryProducts}" varStatus="iter"> <tr class="${((iter.index % 2) == 0) ? 'lightBlue' : 'white'}"> <td> <img src="${initParam.productImagePath}${product.name}.png" alt="${product.name}"> </td> <td> ${product.name} <br> <span class="smallText">${product.description}</span> </td> <td>€ ${product.price}</td> <td> <form action="addToCart" method="post"> <input type="hidden" … | |
Hi, I've been trying to sort a list in ascending order for a problem in class, but my for loop isn't working. [CODE]import java.util.*; public class AscendingOrder { public static void main(String[]args) { int min; Scanner input=new Scanner(System.in); int[]list; list=new int[10]; int[]list1; list1=new int[10]; System.out.print("Enter 10 integers: "); for (int … |
The End.