32,199 Topics

Member Avatar for
Member Avatar for raviaaaa

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> …

0
70
Member Avatar for Prisms

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 …

Member Avatar for JamesCherrill
0
178
Member Avatar for NexG

[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; …

Member Avatar for NexG
0
112
Member Avatar for Syrne

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 …

Member Avatar for Syrne
0
164
Member Avatar for rezial

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 …

Member Avatar for NormR1
0
259
Member Avatar for Abdel_eid

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

Member Avatar for Abdel_eid
0
143
Member Avatar for janice91

[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 …

Member Avatar for Taywin
0
138
Member Avatar for chiiqui

[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(){ …

Member Avatar for stevanity
0
185
Member Avatar for MoZo1

This prints NULL: [CODE=Java]String 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 …

Member Avatar for MoZo1
0
424
Member Avatar for sohiabmaroof

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 …

Member Avatar for 115harman
0
207
Member Avatar for fonzi

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 …

Member Avatar for 115harman
0
148
Member Avatar for chiiqui

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 …

Member Avatar for chiiqui
0
398
Member Avatar for Knoxx

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 …

Member Avatar for NormR1
0
181
Member Avatar for jorizh09

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 …

Member Avatar for NormR1
0
131
Member Avatar for stevanity

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 …

Member Avatar for peter_budo
0
128
Member Avatar for nyemba

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

Member Avatar for NormR1
-1
54
Member Avatar for SteveWaugh

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 …

Member Avatar for SteveWaugh
0
233
Member Avatar for Muhasin

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

Member Avatar for Majestics
0
57
Member Avatar for lena1990

hi iam in my final year my Graduation Project in java language can you help me of how thesis

Member Avatar for Majestics
0
46
Member Avatar for maroom

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 …

Member Avatar for JamesCherrill
0
341
Member Avatar for maroom

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; …

Member Avatar for JamesCherrill
0
215
Member Avatar for janice91

[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.*; …

Member Avatar for Muhasin
0
237
Member Avatar for abrarHuniedi

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

Member Avatar for mKorbel
0
49
Member Avatar for kalpana17
Member Avatar for NexG

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 …

Member Avatar for NexG
0
2K
Member Avatar for isebas

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 …

Member Avatar for isebas
0
232
Member Avatar for nickliutw

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() …

Member Avatar for hfx642
0
121
Member Avatar for peter_budo

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.).

Member Avatar for peter_budo
2
505
Member Avatar for alteran

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 …

Member Avatar for alteran
0
191
Member Avatar for chixm8_49

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 …

Member Avatar for stevanity
0
80

The End.