32,199 Topics

Member Avatar for
Member Avatar for peter_budo

I would like to know if people would be interested in participating building similar starting thread like we have in Java section [URL="http://www.daniweb.com/forums/thread99132.html"]Starting "Java" [Java tutorials / resources / faq][/URL], but targeting Java web development. This thread would hold resources (where to get the things, configurations, basic usage and any …

Member Avatar for peter_budo
3
85
Member Avatar for themafia_69

Hey guys, I have started java for a uni class. I am now using object oriented programming. I have taken vb so i know what functions/methods are. however i am having a hard time coding some programs for an assignment. I will try to make this thread as descriptive as …

Member Avatar for javaAddict
0
175
Member Avatar for No1unoin98

Ok i need some help with this JSP page that has some java in it. My assignment is to create a fictional webpage that requires a login or registration and that checks with the database to make sure that it will verify that no user with the proposed user id …

Member Avatar for masijade
0
210
Member Avatar for ewelinac

Hello. Is there a way to import data (numbers) in to a Java program which will do analysis on the data? Thanks! Evelina

Member Avatar for Jocamps
0
73
Member Avatar for manbearpig

First of all I am a student, I'm in a data structures class. Well I'm having trouble coming up with a getNext method to be used in a linked list class. I am trying to write a getNext method that I can to find out if the list contains a …

Member Avatar for Jocamps
0
100
Member Avatar for maricor

PROBLEM ANALYSIS 1. To calculate how many liters per vehicle fueled and convert it to price. 2. To calculate the sales of the fuel from beginning to ending of one shift. 3. To calculate sales inventory. 4. All the consumer purchase diesel and unleaded must be recorded and save for …

Member Avatar for csurfer
-3
172
Member Avatar for Artamos

First my skill levels: I was over the moon when a friend donated his Trash80 to me, complete with manuals, oh so many years ago.. I got a glimpse into the PC world and later embraced DOS programming..:) As windows came into the picture I left behind my 'boyhood' knowledge …

Member Avatar for Artamos
0
112
Member Avatar for tnccjavaMatt

As discussed on this forum, I'm not looking for a quick answer, just an explanation on why what I have written is not working and a point in the right direction that will make this program work. Problem: Purpose of this program is to create a GUI that presents to …

Member Avatar for Jocamps
0
276
Member Avatar for FallenPaladin

Hi there, please can some help with this very simple regex. I am coming from c# and trying to get up to speed quickly, so have been trying to create samples for my refrence, however can not get this to work [code] String aString = "0123"; Pattern intPattern = Pattern.compile("^[0-9]{3}"); …

Member Avatar for quuba
0
102
Member Avatar for miasuhyla

Write a class called Person.java that has instance variables matric number, name, date of birth, and gender. Use appropriate data types for these instance variables. Include constructor and set and get methods for all instance variables. [CODE]public class Q1L6{ class Person { String name; int DOB; int MatricNum; char gender; …

Member Avatar for Qzmo
0
142
Member Avatar for EGutierrez91

[code] import java.util.Scanner; public class LazyDays { public static void main (String[] args) { Scanner scan = new Scanner(); int temp; System.out.println ("What is the current temperature?"); temp = scan.nextInt(); if (temp < 20) { if (temp > 95) { System.out.println("Go visit our shops!"); } } if (temp >= 80) …

Member Avatar for Grn Xtrm
0
134
Member Avatar for Tussles

As part of an assignment I have been asked to create a SortedLinkedList class. We have been told that we must use the java.util.LinkedList<E> in order to dervie this class. I understand that I must in some way overwrite the .add(Object) method. I realise that I must in some way …

Member Avatar for ejosiah
0
134
Member Avatar for sony1988.sc

i want to remove 0 from an integer array.like if i have an array having element 2 2 1 1 1 0 1 1 2 1 0 1 ,i want this as 2 2 1 1 1 1 1 2 1 1,plz help me

Member Avatar for Jocamps
0
119
Member Avatar for Clawsy

Hello, I would like to be able to add 'n' columns programmatically and SET THEIR TITLE as I add them. I have 2 questions: 1. How can I change the title? (not by seting a model to my table but just 'changing a property' - if possible)? 2. Is there …

Member Avatar for Clawsy
0
243
Member Avatar for comSysStudent

Hi all, I'm just starting java and had to create a method to return the amount of text messages needed for a message x characters long. I'm having trouble compiling and not sure exactly why [CODE] public void msgsReqd(int msgLength) { int numMsgs, smsLength = 160; msgLength / smsLength = …

Member Avatar for ejosiah
0
144
Member Avatar for theo19

[CODE] import java.awt.*; import java.applet.*; import java.util.*; public class Tower extends Applet { TowerPanel panel; TowerControl control; public void init() { resize(500,450); setLayout(new BorderLayout()); panel = new TowerPanel(); add("Center", panel); add("South", control = new TowerControl(panel)); } public void start() { panel.start(); } public void stop() { panel.stop(); } public boolean …

Member Avatar for ejosiah
0
130
Member Avatar for salamjamal10

import java.util.Scanner; public class CalculatingSales { private static boolean Double; public static void main(String[] args) { Scanner input = new Scanner ( System.in ); int ProductNumber; double RetailPrice; double total = 0; int Product1Count = 0; int Product2Count = 0; int Product3Count = 0; int Product4Count = 0; int Product5Count …

Member Avatar for Qzmo
0
225
Member Avatar for JRabbit2307

just trying to create a person(or two) using name, age and nationality but its giving me illegal start of expression error // **************************************************************** // Person.java // // Person class with two constructors // *************************************************************** public class Person { private String name; private int age; private String nationality; // ------------------------------------------------------------ // …

Member Avatar for Grn Xtrm
0
624
Member Avatar for r0n

hello everyone how can i mask a date using [mm/dd/yyyy] and [mm/dd/yy] format in textbox in java?.. and how can i also mask the amount of money using[###,###,###.##] this format?.. thanks!

Member Avatar for javaAddict
0
128
Member Avatar for nymph

i want to program the parallel port pins to control the electronic / electrical devices. the pins 2-9 i know can be programmed.

Member Avatar for dhani017
0
107
Member Avatar for anuj_sharma

Hey Guys, I want to convert a character to it's bit representation. For eg: If i have the char 'J' then it's bit representation is '01001010'. Pleae tell how??

Member Avatar for masijade
0
86
Member Avatar for HappyGoTyping

[CODE]import javax.swing.JOptionPane; public class PossitiveNegative{ public static void main(String[]args){ int N1, N2, product, PoNoN1, PoNoN2; String N1Str, N2Str, productStr, OutputPoNoN; N1Str=JOptionPane.showInputDialog("Enter a number :"); N1=Integer.parseInt(N1Str); N2Str=JOptionPane.showInputDialog("Enter another number :"); N2=Integer.parseInt(N2Str); product=N1*N2; if (N1>0) PoNoN1=N1+"(POSITIVE)"; else if (N1<0) PoNoN1=N1+"(NEGATIVE)"; else PoNoN1="(NEUTRAL)"; if (N2>0) PoNoN2=N2+"(POSITIVE)"; else if (N2<0) PoNoN2=N2+"(NEGATIVE)"; else PoNoN2="(NEUTRAL)"; if …

Member Avatar for BestJewSinceJC
0
106
Member Avatar for Krstevski

Hey guys, I have one stupid problem with the return value of one function... this is my code: [CODE=Java] private boolean check(String mail, int N){ // mail = The mail // N = The sum of the characters before the @ and including it him if(mail.substring(N) == "hotmail.com" || mail.substring(N) …

Member Avatar for JamesCherrill
0
116
Member Avatar for wutangpaul

so i just started a computer programming course I am in first year and I am learning JAVA. so far its been pretty straight forward and I am enjoying it. Our project at the moment is to take a Birdspecies Class, a Person Class and a Sighting class( they are …

Member Avatar for BestJewSinceJC
0
106
Member Avatar for estefania

I am suppose to move the code from the 1st program that actually plays the game into a new method. I am really new at this and have no idea... import java.util.Scanner; public class GuessingGame { public static void main(String [] args) { Scanner scan= new Scanner(System.in); int n; //a …

Member Avatar for Grn Xtrm
0
111
Member Avatar for fortex

Hello everyone, right now I'm taking a java class, and I'm having one error in my app. Right now I have to .java files, one which calls the methods from another .java file. When I compile the first java file, it doesn't give me any error. But when compiling the …

Member Avatar for BestJewSinceJC
2
148
Member Avatar for ryno365

Hello daniweb. I'm working on a Poker Holdem Application and I'm trying to work on a view/jframe for it. Everything was running smoothly until something weird happened. After deleting an old hand-coded MainFrame which extends JFrame file, I tried to create a new MainFrame/JFrame file but this time using netbeans …

Member Avatar for ryno365
1
115
Member Avatar for javapal

Can anyone teach me on how to create a program that counts spaces entered in a string.....

Member Avatar for mrnutty
0
99
Member Avatar for johndb

Can anyone tell me or point me in a direction as to how I could get output in latex maths notation in java. Is there a package I can import? Is java not the right language to be doing something with latex? I searched around the net but unfortunately didn't …

0
44
Member Avatar for JRabbit2307

Hi guys i'm new to programming and i'm supposed to do a sum then average in which the output requests for four numbers from user then takes those #'s add them up and get the average then do a number of values in the array greater than the average is... …

Member Avatar for JRabbit2307
-1
514

The End.