32,204 Topics
| |
Hi, I am new to programming in java...can you recommend me some study material from which i can practice and get started.I want some reference where there are basic sample codes from which i can learn and start applying them in problems | |
Trying to retrieve the OS environmental variable for a user... I looked at this code [code] import java.io.*; import java.util.*; public class ReadEnv { public static Properties getEnvVars() throws Throwable { Process p = null; Properties envVars = new Properties(); Runtime r = Runtime.getRuntime(); String OS = System.getProperty("os.name").toLowerCase(); // System.out.println(OS); … | |
How to read file from https post with certificate. This is my code public static void postHttp(String Linknya) throws MalformedURLException, IOException { File source=new File(path+"hasilnya.csv"); if (!source.isFile()) { source.createNewFile(); } source.setWritable(true); if (source.canWrite()) { BufferedInputStream bis = null; BufferedOutputStream bos = null; try { URL url = new URL(Linknya); URLConnection … | |
I am wondering if there is a way to load up a image and trim the white space of it? like imagemagik for php have that feature but for java wonder if there is anything that can trim white space | |
I really need help understanding this, I have to write 200-300 words due this week though I can not seem to understand what little my book tells me about it. Sadly this is all i got from my book...Multiple parameters can be declared by specifying a comma-separated list. Arguments passed … | |
I'm trying to make a PhotoAlbum using JApplets.I write a Java code for it and then compile to make a .class file and then made a html file in the same directory which have .class file.But while running it on Web -Browser it doesn't load the applet and shows that … | |
I am trying to just compile a very back program and it compiles but when I run it I get errors: Java version = java version "1.5.0_09" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03) Java HotSpot(TM) Server VM (build 1.5.0_09-b03, mixed mode) Program HelloJava.java public class HelloJava { public … | |
hi i'm a new member for this site. i'm a student. i would like to create some small java application softwares. so i need some support from you. | |
I want to send value from Asp textbox to Javascript function on Button 1 click how i can have that . pls help This is my code <head runat="server"> function callserver(txt1) { //Here i have to receive the value var nm=txt1 alert(txt1); } </script> <asp:TextBox ID="TextBox1" runat="server" Style="z-index: 100; left: … | |
Are there, in any way, shape, or form, pointers in java like there are in C and C++? If so, do I declare them the same way as in C++? My 873 page book doesn't explain pointers. | |
when you use floating points and do the coding normally you get 4 decimal points. . but if i want to make it to 2 decimal points. how can the program should be. please help me out here is the program i did /** * @(#)Average.java * * * @author … | |
i have created a code which takes username pass etc from the user and then pts them in the database which is made using MSaccess the program complies very well but when i open my database no entries have been entered in there can u plz help [code] <%@page contentType="text/html"%> … | |
Is it possible to generate something like the following-- [code=java] public interface Reference{ // Returns a reference of the provided type (in theory) public <E> E getReference(int num); // Set the reference of the type public <E> void setReference(int num, E ref); } [/code] [code=java] public class ClassFullOfReferenceVariables implements Reference{ … | |
I need help adding tables in the payment area that shows the full payment plan. Also my months start high to low. I want the months to start with month 1 [CODE]import java.io.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.lang.Math; import java.text.NumberFormat; import javax.swing.table.*; //Setup lables and buttons public … | |
Basically, I need to write a program that takes a user input for multiple text files, and then prints them out into one file. I usually try not to pose questions here back to back, but alas, I need the help this time round. What really has me baffled is … | |
Hello, i'm attempting to create a splash screen using the code snippet posted on this site(i.e. DaniWeb) - [URL="http://www.daniweb.com/code/snippet697.html"]http://http://www.daniweb.com/code/snippet697.html[/URL] However, I'm having some difficulty. It appears that the splash screen will continue to run w/out disposing itself. That is, the screen hangs and does not go away. Also, the screen … | |
hi , i have a simple problem here, that is how can i convert an Decimal integer into Hexadecimal integer and not in Hexadecimal string. I have wrote the following code and managed to get the output from the program. But for a certain reason i cant use it again … | |
The project is completed, the report is working in the JCreator, but not when i run jar file.. I've searched the forum but i couldn't find to my requirements. I want to know to how to make the jar file that the report should also work.. Help needed plz.. | |
[CODE]FLAG MANAME SUM(SUM_AMT) -------- ---------------------------------------- ------------ Credit Advance From Others 999 Credit Audit Expenses 567 Credit Bank of Maharashtra 100 Credit CASH 2766 Credit SBI 555 Credit State Bank Of India 3777 Credit Sundry Creditors 1111 Credit salaries payable 444 Debit Advance From Others 13332 Debit Advance Travelling 3000 Debit … | |
Hey all I recently picked up the book "Java the first semester". It uses the EasyIn class to get user input. I have downloaded the file EasyIn.java but I dont know how to make the class accessible from my programs. [QUOTE]As long as the EasyIn class is accessible you can … | |
Hi everyone ! This is my first new post, I have a problem with my Java code. I am trying to make a first applet, and have gotten this code from a book, "Java - An Introduction To Problem Solving & Programming", by Walter Savitch and Frank Carrano : [code] … | |
[B]generate a 5-day timetable for a school (multiple classsrooms) be able to assign students to specific courses to certain rooms/teachers at a specific time interval (without clashing with other classes) it must use a database as a medium (ODBC) this is a project that i need some drastic help in … | |
Hi, I am relatively new to C#.NET and I was wondering if the garbage collection is similar to Java. I am developing a windows form application and I am dynamically making new buttons, will they be deleted by themselves or will I manually need to delete them? For example: this … | |
Hi, I have to develop a little launcher for mobile phone. What I want at this stage is having a login form that sends login and pass to the server, and then wait and receives the answer. I already installed NetBeans and the Java Mobile environment, with a sun phone … | |
Hi, am doing M.sc Final year....i have to submit an assignment on java project which should be a real time project......but i dont know how to choose the project.....can u please help me to get a very good project in Java which will be useful for my Career........:( With regards, … | |
Hey, I'm starting out Java development, and I want to know exactly what I need to download. I believe I need to download the JVM, but what else? And I know there are IDEs like NetBeans where you can just press a button to build and/or run the program, but … | |
i am making a project using jsp and i am stuck with the signup page i want the user to enter its username , password, re enter password and a security question plz can any one provide me with the code or something i shall be very very thakful to … | |
Hi, friends I am developing project in which I get some data from the database which is already saved as HTML. I can get get whole data which is simple HTML but this database content is developed as below. Word file first created save it as the web content and … | |
Hey all, this is approximately my first post in this site. I was just a good reader for the things about JAVA right here. But now I'm facing a problem with JAVA and I didn't know what to do except coming here and ask as you might help (ISA). I'm … | |
i am new to java i am learning myself.i moved on to jvm i did'nt understanding it and ithat to searched google i found little bit confussion so can any one solve my problem thankingyou |
The End.