32,199 Topics
| |
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(){ … | |
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 | |
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 … | |
iam triying to develop a new java applet programm by help of database. i dont know how to connect and create a database. i am a beginner to java.help me | |
hi iam in my final year my Graduation Project in java language can you help me of how thesis | |
Hello below is the progra... i cann access araylist in the main class function.... like "LoanBook" see that in the code.... plz recity meeee folks... thanking uuuu =--------------------------------------------------------------------------= [ICODE] import java.util.ArrayList; import java.util.Scanner; // To take customer detais by using Constructor and Customer deatils class Customer { int cusId; String … | |
I have got errors which where commented in below program.Plz compile these program and cpy paste the code ... iam little bit confused... dudee.... [CODE]import java.util.ArrayList; import java.util.Scanner; // To take customer detais by using Constructor and Customer deatils class Customer { int cusId; String fName; String lName; long phNo; … | |
[I]Dear experts, I am trying to code out my assignment but i made a problem with my [CODE]break;[/CODE] within my [CODE]if (operator.equals(zero))[/CODE]. i have received compilation error stating the following: [/I] [B]HelloWorld.java: break outside switch or loop[/B] [I]Appreciate if someone can point out my mistake. Thank you.[/I] [CODE] import java.util.*; … | |
hi I want to work with GUI and do alot of screen but with java I think its dufficult , I want to use Eclipse but I need some tutoril to start | |
Here is the code I have so far. I'm not sure how to proceed from here. My goal is to make a program that outputs the probability of n amount of coin tosses, where n is the user input. [CODE]import java.util.Scanner; public class toss{ public static void main(String[] args){ Scanner … | |
Im an AP computer science studen (we started two weeks ago so I dont know much). For homework we had this problem: " Write a program that will let you enter your gender (M or F) and your height in inches and will then tell you wether you are tall,medium … | |
I'm programming a program that add feet and inch together(assume feet and inch are integer). I run into a compiler error. I know the problem is I'm missing the returning statement. But I don't know what to return. [CODE]public class Distance { private int feet; private int inch; public Distance() … | |
Sometimes one line of tool tip is not enough. You may want to try and play around with JToolTip, but if you in hurry this "little hack" can be handy. With little of HTML plus CSS code you can work out various formats (font, colour, alignment, size etc.). | |
I've been trying to modify the following code so that it only displays one scrollbar for 3 radio buttons but so far I just can get it to work right. After the modification the gui should have 3 radio buttons at the top, one scrollbar for all 3 buttons, and … | |
Hello. I would like to ask some suggestions to the community. In Arrays, we can implement a 2D array like: [CODE]String[][] testString = new String[][] { {"1", "2", "6"}, {"4", "5", "3"} };[/CODE] How can I implement this in Vector? Or is that even possible? I was doing it in … |
The End.