35,618 Topics

Member Avatar for
Member Avatar for Junzification

can you guys help me with my assignment given to me, my prof. said .. create a java class that will accept four Integers & develop a method that will arrange the accepted integer from highest to lowest. example: if you enter random number like: [B]10 6 7 9[/B] the …

Member Avatar for Eric Cute
0
162
Member Avatar for iammet

can somebody help me to put an action in a button that comes from a different class. Specifically t [code]import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.*; class LogIn implements ActionListener { private JFrame f,f2; private JButton jLog, jCan, jReg,jOk; private JPanel j1, j2, j3, j4,j5,j6; private JTextField jText; private …

Member Avatar for masijade
0
176
Member Avatar for hatux

Hello! I was curious if i could help any guidance on my problem. In my program i have the following class. [CODE] class Match{ String File; String Area; int Score = 0; //public Match(int Index ){ public Match(String File,String Area, int Score){ this.Area = Area; this.Score = Score; this.File = …

Member Avatar for masijade
0
106
Member Avatar for javaking33

I understand that this code will not run because i have 2 string and 1 float type in my text file and i am storing them as int's but how do i do this?.. please someone help me this is so frustrating Here is my .txt file [QUOTE] 100 200 …

Member Avatar for jon.kiparsky
0
186
Member Avatar for kandyhyatt

I am having serious trouble and i don't know what exactly I'm doing wrong can someone please help. Here is the question ? In this assignment you will create a console (standalone) application. This program will allow you to select MegaBall lottery numbers. For the first 5 numbers you will …

Member Avatar for Eric Cute
0
124
Member Avatar for Slyvr

GridBagLayout question My main class holds frame and gets left and right panels from other classes [CODE] /** * Matthew Schrum * 11/14/2010 */ import java.util.Random; import javax.swing.JFrame; public class Sim { public static void main(String[] args) { //variables LeftPanel leftPanel = new LeftPanel(); RightPanel rightPanel = new RightPanel(); //GUI …

Member Avatar for Eric Cute
0
179
Member Avatar for john410

"LeftRightPanel.java:45: setText(java.lang.String) in javax.swing.JLabel cannot be applied to (int) label.setText(num1);" I'm guessing that this is because I'm trying to imput a int in a line where there's supposed to be text. Can I do something like .setNumber, .setNum, or .setInt? Or is this an issue that I need to adrress …

Member Avatar for Eric Cute
0
110
Member Avatar for wizuptech

new in here, new in java world and new in programming at large, but i believe i can learn with the help of professionals and educators in the house. Don't be surprise am staring from such task as a newbie, it 'cos am made to believe i must find a …

Member Avatar for wizuptech
0
92
Member Avatar for flyingcurry

The below method is for my database assignment, and we are supposed to check if the "username" the user adds is already in the database. Somehow "newRecord.username = sc.nextLine();" this line does not work, the second time through the do-while loop It seems like it just ignores the line or …

0
171
Member Avatar for Lxyslckr

I need to make a string by using a loop to a method from ohter class that is named speak(), and is seperated by a \n the problem is in the class public String allSpeak() [CODE] /* public String allSpeak() ( if (count = null) { System.out.println("No Animals to Speak"); …

Member Avatar for Eric Cute
0
132
Member Avatar for helplessa

For the final part of this assignment I need to do the following: Any help/advice/starting pointers would be great! 1) Create a row of Alien attackers, class RowOfAlien, patterned after the partially filled array. Put five Aliens in the row. When the row hits the left or right of the …

0
83
Member Avatar for optikali

Hello all! I am starting to write a little roulette game and while trying to print out my arrays to make sure they contain the correct values the compiler keeps screaming this at me: "non-static method .... cannot be referenced from a static context" Any pointers would be greatly appreciated! …

Member Avatar for optikali
0
89
Member Avatar for ricordeon

hello guys im a newbie in programming pls. sdvice what java programming book should I buy. pls... for the newbie ^^

0
59
Member Avatar for sToXiC

Hello, I am working on a server-client app but I am facing a problem. The problem is that I don't know how to do unmarshalling properly. As an example. The client sends a request to obtain alist of existing blog records from the server. The server connects to the DB, …

0
41
Member Avatar for sellerjd

I'm resizing images (making them smaller) and am wondering if there is a programatic way to determine the variance of an image using JAI. High level, I want to be able to tell when I've scaled an image down so much that it no longer looks good. I understand that …

0
69
Member Avatar for nikita.chandra

Hi all, I just wanted to know that which is the best and cost effective web hosting service provider for jsp,servlets and Mysql database. thanks

Member Avatar for peter_budo
0
189
Member Avatar for nexus490

Hey all, i have written a short program which outputs a basic Histogram in this form: (0-25) *** (26-40) **** (41-75) ** (76-80) **** (81-100) ** I'm required to alter my solution so as well as that it also outputs it vertically so i'm after something like this: * * …

Member Avatar for nexus490
0
111
Member Avatar for chippanfat

Hey guys, in my programming assignment I need to split the mantissa and exponent and add them to two separate variables. so £1.88 would be [CODE] double amount = 1.88; //then after the conversion mantissa = 1; exponent = 88; [/CODE] I've looked at this a lot over the web, …

Member Avatar for jon.kiparsky
0
194
Member Avatar for nitins60

Hello friends, I have a Customer class (Parent class) and Member class (child class which extends Customer class). the coding is like this [CODE] public class Customer { String name; } public class Member extends Customer { int memberID; } public class Tranasaction { public void printTransaction(Customer customer) { if(customer.memberID …

Member Avatar for ~s.o.s~
0
160
Member Avatar for LianaN

Hi! I have a Java application that works with MySQL DB. Until today I used latin alphabet, but now I would like to extend my application to working with cyrillic alphabet. As far as I know, it is possible to use UTF-8. But I don't know the way, in which …

Member Avatar for LianaN
0
303
Member Avatar for Theformand

Hey all. I have a deadline tomorrow, and this thing is killing me, so I come to you with hopes of help. I have a couple of classes. An info class, which converts a string to ints and puts it in the [B]values[/B] array. Another class (plotter), is supposed to …

Member Avatar for Theformand
0
161
Member Avatar for anithajerome

Can anybody guide me to create a calendar editable by the client by selecting a date in jsp/html

Member Avatar for peter_budo
0
59
Member Avatar for shaz24

hello. I want to know if its possible to develop a mobile application using java language.

Member Avatar for peter_budo
0
62
Member Avatar for lokis

Hi, This is lokesh from india,completed B.tech (computer science). Right now looking for job. me positive thinking and very confident not over confident. my hubbies are playing chess and traveling long trips and love to make friends around world.

Member Avatar for AndreRet
0
184
Member Avatar for _neo_

Hello! I'm new in java. I need some help, guys. How can I determine in Java next run time of cron-like job? For example, if I have crontab entry without command, like [I]"*/15 * * * *", every 15 minutes "5 */2 * * 1", every Monday at 00:05, 02:05, …

Member Avatar for _neo_
0
3K
Member Avatar for Lxyslckr

The question is if x >=1 then i creates the array if not then it defaults x to 1. [QUOTE]Zoo has one constructor which takes an int as a parameter and uses it to instantiate the array animals to that size, and it also sets count to zero. It should …

Member Avatar for ~s.o.s~
0
145
Member Avatar for Ritesh_4

Hello Just like we have some addons which enable us to download flash movies from webpages in firefox, is there a similar tool which can download javascript animations from webpages?

Member Avatar for Ritesh_4
0
95
Member Avatar for Ambislm

I have 3 combobox in my index.jsp file. I have filled first 2 combobox with data's from database... Now i have to fill 3rd combobox with the values which i have in java file such as: [code=Java]private static String[] types = { "Vehicle Reporting", "Vehicle Revisits", "RO - JDP Count" …

Member Avatar for Ambislm
0
213
Member Avatar for coco24

Hello all: The task is to: Create a row of Alien attackers, class RowOfAlien, patterned after the partially filled array. Put five Aliens in the row. When the row hits the left or right of the screen, the Aliens snake downwards (see demo). Note that this is different from the …

Member Avatar for coil
0
180
Member Avatar for anithajerome
Member Avatar for anithajerome
0
65

The End.