I should do, for my academic project, draw from a java project some information, for example, the class name and the relative method, and for each class even the package name where the class is. The information found must be saved an XML files...
I am now stuck. I am writing a program that reads information from a data file and runs it through but program. However, I am almost finished with the program, but cannot figure out the last few parts.
public class Storm { private final double KnotsToMPH = 1.15; // global user-defined types: private int beginDate; private int duration; private String name;
[Code] .....
I have not attached the data file because it contains a total of 360 lines of hurricane information.
consider this statement from a jsp file(there are many more statements like this in jsp file..) Statement -
<h:dataGrid something styleclass="styleclass1" something1 onClick="event" something2 <% this is a scriplet tag %> something3 style="style1">
<h:output text>hello i am text</h:output text> </h:dataGrid>
What I want is to extract(and store it somewhere) the part from "<" to ">" where:
< - is the one in "<h:dataGrid" > - is the one in "style1>" and not the('>') one that appears in the end of "</h:dataGrid>" or "<h:output text>" or "</h:output text>"
Problem is the text b/w && is in multi-line...&& there are scriplet tags in between them.. so i don't know how to extract this particular string.. i tried using using some regular expressions but couldn't find the exact one..
(this was just an example && instead of this "" tag it can be anything like again in this line :
<h:output text>hello i am text</h:output text>
I want to extract the string from "<" till ">" where :
< - is the one in starting of "<h:output text>" > - is the one in ending of "<h:output text>" and not the one in "</h:output text>"
However the difference b/w this example and the above mentioned one is that this one is not multi-line and doesn't contains any scriptlet tags)....
I will be developing a change and would like to know how can i parse a mail header in OBPM using java.
I want to get the message id, date and time the email recieved and email size.
Our code is already fetching the attachment of the email using the following syntax.
mailAttachments = mail.attachments;
I tried creating a variable like mailHeaders = mail.headers, would you know how can i get the details i want by parsing the variable? so far I wasn't able to check what mail.headers return as i'm currently having issues running our code locally due to DB connections.
my idea is auto recognize when i put image like survey and that survey has shape box and it random area location and some shape box also character and number and can generated data that recognize in csv file.
i downloaded a sample database code of an online payroll system. How can i assemble it to know how it works. the files include php and mysql files. it is to build an online payroll system
I tried many times to return a string from java project to an android project But it keeps sending incorrect values as in 2 as it should be 1 here is an example.
I use a program called eclipse. I want to know how to build a house with the program. We use a pen in java. It is a drawing tool. I dont know how to do it.
I have a gameengine stil partially in the works for pc made in java, I am attempting a port over to java but certain classes and other fuctions are not available for android that there is in java. this means that my render engine, gameengine and a couple of other clases therefore don't work.
My question is, is there anyway of using the gameengine classes that work into the project so that all i have to do is declare within the engine what i want to export for wheather this is android or java. or importing packages from the game engine project and directly linking with the ability of re-writing the odd few classes that do not work.
I want to develop a website using jsp and servlets.but i have a few questions:
1: I want to use oracle for database, can i use express edition? 2: After writing the code how do i transfer the code to the client 3: How to deploy the website on internet
I tried many times to return a string from java project to an android project But it keeps sending incorrect values as in as it should be 1 here is an example.
1. Modify the following class so that the two instance variables are private, there is a constructor that accepts both the player's name and sport and there are get and a set methods for each instance variable:
public class Player { String name; String sport; }
2. You can pass an instance of this class to the JLabel constructor if you want to display text in the label.Select one: a. myLabel b. myText c. String d. JTextField e. JLabelText
how to start making this work?cause i am not familiar with the terms here and want to complete this program and I am new to java programming?
I am working on a Java Streaming Networking ( Client Serve ) project , among remote client can:
1 ) chat,
2 ) Share files,
3 ) Share Screen live streaming,
4 ) Access the remote system.
All are working well faster & live on networking. But if i host on the Hosting server the all process are working but in deadly slow streaming is not live..,
I've been working quite a bit with a login system the past couple of months and I now have a version that I would like to try "for real" by extracting it as a runnable .jar or .exe file. I've looked at a couple of guides that told me how to do this properly, but even after following every step precisely it didn't work.
One of the guides I tried: 3 Ways to Create an Executable File from Eclipse - wikiHow
Double clicking the file or selecting it and pressing enter does nothing, the computer loads for a second and then nothing happens. I don't receive any visible errors when extracting the program, either.
However, when running the file from the command prompt I do receive an odd error: Microsoft Windows [Version 6.2.9200] (c) 2012 Microsoft Corporation. All rights reserved.
C:UsersUserName>java -jar Login.jar Exception in thread "main" java.lang.IllegalArgumentException: input == null! at javax.imageio.ImageIO.read(Unknown Source) at LoginSystem.Data.updateData(Data.java:347) at LoginSystem.Data.<init>(Data.java:309) at LoginSystem.MainFrame.<init>(MainFrame.java:42) at LoginSystem.MainFrame.main(MainFrame.java:457)
C:UsersUserName>
I must say I don't quite understand the error, it seems to be unable to load an image which is odd considering the program works fine without any errors at all in Eclipse.
Our goal is to write a pretty simple program, one that takes the 12 digit UPC code entered by a user and to not only spit it back out in a format with dashes using toString, and also returns the first digit, a 2 more groups of digits numbering 2-6 and 7-11, and finally display the 12th digit. It then performs an equation to check the last digit and make sure the UPC code is correct.
However, being so new to java (I only learned visual basic before), with this I was introduced to two new concepts that for some reason I simply cannot grasp for the life of me: Using and calling the toString method, and calling on methods that are created in a completely different class file.
The first section of code is my UPC class, which is meant to contain all my methods as well as the toString to be called on:
public class UPC { // Instance variables private int itemType; // digit 1 private int manufacturer; // digits 2,3,4,5,6 private int product; // digits 7,8,9,10,11 private int checkDigit; // digit 12
I wrote a simple random spelling game for a class project, was never able to get the labels to update when they should. I have tried .updateUI, .paintImmediately followed by .revalidate and by .repaint. Nothing seems to be working.
What the game does is show a random word for about 10 seconds, disappear and they user is to spell that word, you have 3 tries then will start over. The "brains" of the game work just fine, it is the labels updating with new text when they should doesn't seem to be working. There is 4 classes but the below is the "Main" that has the problems. Also have a null exception problem with the timer.stop(); not sure why. I am still pretty new to java.
Public class SpellMe extends JFrame { // variables JPanel mainPanel, secondPanel, thirdPanel; JLabel mainLabel, wordLabel; String spWord, sp; JTextArea guess;
package data; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class MyClass extends HttpServlet { private static final long serialVersionUID = 1L;
[Code] ....
while execution of this project index.jsp executes fine but when servlet is called an error is thrown:
SEVERE: Allocate exception for servlet MyClassjava.lang.ClassNotFoundException: data.MyClass at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1128) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:827) at
[Code] ....
Directory structure:
App1
->Deployment Descriptor:Archetype Created Web Application ->Java Resources ---->src/main/resources ------>data -------->MyClass.java
I am having some issues with errors. Here is my code...
import java.io.*; import java.util.Scanner; public class StormChaser { public static void main(String[] args) { // Constants final int MAX_STORMS = 319;
[Code] .....
I am having issues with these error messages.... I have tried a couple of different things with each error but haven't been able to figure it out.
Exception in thread "main" java.util.UnknownFormatConversionException: Conversion = '1' at java.util.Formatter.checkText(Unknown Source) at java.util.Formatter.parse(Unknown Source) at java.util.Formatter.format(Unknown Source) at java.util.Formatter.format(Unknown Source) at java.lang.String.format(Unknown Source) at Storm.toString(Storm.java:98) at StormChaser.DisplayStorms(StormChaser.java:141) at StormChaser.main(StormChaser.java:53)
Write a java program to store employee information in a linked list, the program should implement the following functions:
The program should display the list of functions, and ask the user to enter the number of function that he/she wants to do, then perform the function as it is required in the previous table.
import java.util.*; public class Employee { Scanner in = new Scanner(System.in); String Name; String Address; String Department; int ID; int Salary;
[code]....
this is my out put
Please choose a number: 1-Add a new employee 2-Update employee's info 3-Remove employee's info 4-Exit 1 Enter name: Enter address: 2 Enter department: 3 Enter ID: 4 Enter salary:
now:
1- why are not my adding coming out in the output only the Enter name & Enter address ??
2- how can I add names and ID's and information to test that program