I hava little bit of knowlodge in VBA.. I hava a small project related to processing large data.. I need to create a GUI.. I have installed Eclipse software
My progest requie
1.Creating a GUI
2.I need show data folder(consisting 100s of files) from GUI and all files in folder should be moved to each folder with same name as of file name.
In the class below I'm trying to create a class that will accept dates in various formats and create a range. The first constructor is easy because I send it the begin date and end date as Date objects. Now I want to send a month(and year) in a constructor and derive the begin and end dates from it. In my constructor that accepts the month/year I need to put the this(startDate, endDate) at the top to be allowed, but the parameters are not built yet.
package com.scg.athrowaway; import java.util.Calendar; import java.util.Date; public class DateRange { private Date startDate; private Date endDate;
I'm having some difficulty with my bank account project. I'm supposed to create a menu where the user can create a new account, withdraw, deposit, view their balance, and exit. There's issues with the account creation.
Here's my necessitated class below: BankAccount, TestBankAccount, SavingsAccount, CurrentAccount, and Bank
I certify that this assignment is my own work and that I have not copied in part or whole or otherwise plagiarized the work of other students and/or persons.
I'm new to Java and I have an assignment to create a Sphere class that will allow you to create Sphere objects using the code below. Then create a program called SphereTester that prompts the user for the radii of two spheres in meters. The program should display which sphere is larger and by how many cubic meters and display only four digits after the decimal point. I have the sphere class given to us for the assignment which is this:
Java Code: public class Sphere { // instance variable (i.e., a field) private double radius; // constructor for the Sphere class public Sphere(double r) { radius = r;
i have jsp file and inside i have list that i get from my servlet . i want to create in the bottom of the page the option to move from one page to another like this " page: 1,2,3,4,5"i try to use the tag <a href=.. and onclick() event ,and i understand that javascript will not work , how can i create the " page: 1,2,3,4,5" ?
I am trying to create a class (DVD) with an instance variable that references a map, the constructor for this class must create an empty map and assign it to the instance variable map. I want to populate this map with instances of a different class called tv series, I am using blueJ, I am not sure why this doesn't work
Java Code:
import java.util.*; public class DVD { public static Map<String, TvSeries>DVD; public TvSeries program;
I'm having trouble creating two new die objects for the PairofDie class. I'm trying to run two separate die and print the face value and then add both numbers up and print those values as well.
public class Die { private final int MAX = 6; private int faceValue; //private int faceValue2; public Die(){ faceValue = 1;
[Code] .....
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
The method Die() is undefined for the type PairofDice The method Die() is undefined for the type PairofDice at PairofDice.main(PairofDice.java:6)
I would like to create a custom tag which works similar to <c:forEach/> tag i.e
<c:forEach var = "movie" items = "${collection}> ${movie} </c:forEach>
I would want to create the similar behaviour(as above) in my own custom Tag.Morever I would like to use the doStartTag() and doEndTag() and doAfterBody() methods while creating custom Tag.
how to create a JAR File I have been watching you tube and it seems like the manifest needs to be remade. I go to the CMD and find my project folder class. I think I need to use do the same for all the classes correct. Well I type jar -cf TictacToeGUIGame.jar *java then I get no such directory. I can see the it worked thought. So do i do this to all my classes and then I will have my JAR program?
Codebase: myserver.com Permissions: sandbox Application-Name: Dynamic Tree Demo
error message from command line:
C:UsersxxxxDesktopCOMP268applet_ComponentArch_DynamicTreeDemoapplet_Comp onentArch_DynamicTreeDemouildclasses>jar -cvfm DynamicTreeDemo.jar mymanifest .txt appletComponentArch java.io.IOException: invalid header field name: ?≫?Codebase at java.util.jar.Attributes.read(Attributes.java:433) at java.util.jar.Manifest.read(Manifest.java:199) at java.util.jar.Manifest.<init>(Manifest.java:69) at sun.tools.jar.Main.run(Main.java:172) at sun.tools.jar.Main.main(Main.java:1177) [/code] encoding in UTF-8 and have newline at end
.I was reading head first java book and saw a barbell question on page no. 280,question-"what if you want to write a class in such a way that only one instance of it can be created,and anyone who wants to use an instance of the class will always use that one,single instance?"
I'm new to java and have been coding for a few hours. I tried to create a calculator (Which has no GUI, just text inputs)which will let you select how to process the two integer (Add, minus, times etc.) I cant seem to get it to work. I will put in the process way such as times and have entered two integers and every time it doesn't work. Here is my code:
import java.util.*; public class Calculator { public static void main (String args[]) { int input1 = 0; int input2 = 0; int answer = 0;
Ive been trying to create a program to say how many 5cent,10 cent and 50 cent coins there are if you put a number in example 20. I used the init method because thats what the teacher told me to use but i have no clue on what to do.
Write a for loop for creating a pyramid starting on the platform with the bottom line consisting of 10 boxes then 8 then 6 and so on. I have attempted making the first row but when i run the program the boxes all split up and fall over.
I am making a Sudoku game and creating a matrix of JTextFields. However I am getting the following errors
Exception in thread "main" java.lang.NullPointerException at SudokuView.board(SudokuView.java:30) at SudokuView.<init>(SudokuView.java:18) at SudokuMain.main(SudokuMain.java:5)
I know the problem is with this code
box[i][j] = new JTextField(); panel.add(box[i][j]);
I know this because when I do this:
panel.add(new JTextField());
It works. However it puzzles me why it is not working.
Whole Code:
import java.awt.GridLayout; import javax.swing.*; public class SudokuView { JFrame frame; JPanel panelBoard; JTextField[][] box; int row=10; int col=10; SudokuView(){ frame = new JFrame("Play Sudoku GOOD LUCK");
I'm making a small play in java in which you have a limited time to make as many moves as possible (with the aim of achieving a maximum score), like this: URL...
In the game panel I see the map on which you will perform the moves and a score indicator constantly updated. I have to add the indicator that shows me the passage of time (first 3 minutes), in digital format mm: ss. I thought I will be a useful thread called Countdown because I have to stop this counter if the user presses the pause button in the game. Then wanting to continue the game shall resume the countdown.