What Is Meaning Of OpenSource In Any Programming Languages
Dec 29, 2014
what is meaning of Open Source in programming lenguages?
I want to ask this question reagrding this context that if some company or some products that says "This is open source" all codes are available Then it it mean..
1)We can reuse,re produce,distribute this code,modify and sell it for commercial purpose?
I know there is license also attach with a OpenSource.
program to accept string import java.util.Scanner; public class accept_string{ public static void main(String[] args)
[code]...
I wrote this program.actually I copy it from webpage this website.Its very cool to wrote programs in java.but I did not understand meaning of string,scanner......
I am learning JAVA and understanding some of its specific oddities. For example I notice that JAVA loves instances but not variables.
In Python: x = 1 y = 2 print(x,y) yields (1,2)
then I do y = x and print getting (1,1)
This makes sense to me since x and y are variables and thats how variables work. In JAVA I notice this script:
public class TESTRUN { public static void main(String[] args) { int x = 0; int y = x; System.out.printf("x = %d, y = %d %n", x, y); x = 9; System.out.printf("x = %d, y = %d", x, y); } }
This yields: x = 0, y = 0 x = 9, y = 0
So I get that JAVA doesn't understand variables? Or only takes instances of variables? Is there any way to yield a true variable or you always have to update variable relationships?
I'm beginner with javaFX and i need to change language of the screen. but how to reload the screen when the language was changed. The application have a button where have the language available. I want just refresh screen when the user change language. Here is the start method to show the stage.
We have a requirement that we need to have text area/text box on screen to accept multiple languages like (Spanish and russian) that means user can able to enter their text data either in any language like english,russian and spanish(It should be possible to enter the comments in russian and spanish languages). Is it possible to implement in java/j2ee?
I'm just trying to learn how to cut the IDE out of my programming.I've added C:Program FilesJavajdk1.7.0_55in to the environment variables (path), am navigating to the src folder where my java class exists in cmd prompt, and then typing "javac CaesarCipher.java", but its complaining that it can't find the file.
Is the problem something to do with the relative address of the compiler to the file it needs to run? Just a stab in the dark on my part. Or do I have to add the JRE path as well as the compiler?
I find myself asking these two questions because I see them as relating. First question is; I always write
Java Code: f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); mh_sh_highlight_all('java'); (where f is a JFrame object)
to set the close for the JFrame. What I don't get about this is what is going on in the parenthesis. I looked in the Java Documentation, and it says an int goes inside. In that case, I don't really get what the word JFrame is doing there. Overall, please explain what is inside the parenthesis of that line and why it has to be there.The second question is a generic question. I notice a lot of times an object will be created, and as its parameter, you will have to instantiate an object. an example would be
Java Code: Class f = new Class(new Object) mh_sh_highlight_all('java');
What does it mean when an object gets created inside of a new object? Why is putting Java Code: new Object mh_sh_highlight_all('java'); ever necessary when concerning the two parenthesis?
The goal is as follows: Write a UDP 'CompressionServer' that will take input from the user until it sees a "magic string" at which time it will create a compressed and uncompressed version of the file in the file system.
So, I need to integrate the following "Zip" code in to my UDP server code (which already creates the uncompressed file)... That is where I am stuck at now. My first few attempts had the Zip code after I write to "fout" but that failed to create a ZIP file.
I guess the main point here is what are the key pieces of the ZIP code that I should include and what would be the best spot to place them in my server code...
Zip Code:
import java.io.*; import java.util.zip.*;
public class Zip { static final int BUFFER = 2048; public static void main (String argv[]) { try { String fileInput = argv[0]; String fileOutput = argv[1];
class triangle { public static void main (String[] args) { System.out.println("Provide three side lengths - 000 to terminate."); int a = In.getInt(); int b = In.getInt(); int c = In.getInt();
[code]....
My problem is that when I enter 5,2,5 it should be isosceles and acute but it comes out as isosceles and obtuse, and when I type 5,5,5 it comes out equilateral and right. The only one that works is if I enter 3,5,4 it will come out as scalene and right. I been at this for a while and my math looks correct.
I'm having problems programming the LightsOut game. I made a 5*5 matrix and filled it in with 1's and 0's, where 1 means on and 0 is off, they should be placed randomly. The player can choose a field, for example "A2", and the matrix should change according to the input. My problems are how can I choose a field ? How can I display the new matrix after playing the first step and so on?
PS: I'm using the console because I'm still not good with JOptionPane commands.This is my code for the Game:
I'm learning Java and came across saving user preferences. As I was learning I also learned about object serialization and File input/output. I've heard that the windows registry can be a problem because it can quickly become a dumping ground for uninstalled programs. So my question is why should I use the Preferences API? and is it really good practice to program to the registry for saving information? I'd also like to be in good standing towards the programs I write so if it is common practice to write to the Registry how exactly would I manage the information that I dump into the Registry?
We are working with Java and Eclipse..One of the assignments asks to "Write an application that determines the number of coins in a jar and prints out the total in dollars and cents. Read integer values that represents the number of quarters, dimes, nickels and pennies. Use a currency formatter to print the output."
I would like to bring a project in java program written by me, that interfaces with a fingerprint reader (already purchased, the reader U.are.U 4000b) and as I'm using fingerprint sdk sdk's Griaule.
I am looking to program a simple genetic algorithm in Java but where to start.
" In a computer language of your choice, implement a simple genetic algorithm (GA). That is, write code for a generational GA which uses a binary encoding, tournament selection, single-point crossover and bit-wise mutation" ....
Which of these is not a real differentiator for programming languages:
a) Object-oriented / Process-Oriented b) Interactive / Automated c) Interpreted / Compiled d) Strongly-Typed / Weakly-Typed e) All of the above f) B and C g) B and D
Almost all support OOP, Interactive/Automated, Interpreted/Compiled but not sure about Strongly typed/Weakly typed.
Use Java to write and run a simple console-window program for checking passwords. The program must satisfy the following requirements:
-When the program runs, it should first print its name, e.g., Password Checker -The program should next prompt the user to enter a username, e.g.,
Please enter your username:
-The program should next prompt the user to enter a password, e.g., Please enter your password: - If the user enters a correct password, i.e., one that matches an internal secret password, the program responds. You are approved by access control!, and quits. -If the user enters an incorrect password, the program responds
Try again: -If the user enters a correct password matching the secret one, the program responds. You are approved by access control!, and quits. -If the user enters an incorrect password, the program responds
package class1; import java.util.Scanner; public class class1 { public static void main(String[] args) { // TODO Auto-generated method stub
i was reading my book when in a code,it used accept(),but it did'nt talk about it.would you explain to me where to use accept().(the chapter was about socket programming)
I'm reading a book titled 'Intro to Java Programming'. I understand all the Main Method stuff. I'm now reading a chapter that talks about event driven programming. I know how to do this in VBA and in C#, ut I can't figure out how this works in Java. Here's the sample code that I'm trying to run.
I'm using Net Beans IDE. When I paste that code into the IDE, I get all kinds of errors. Also, since there is no Main, I don't know how this is supposed to run. Java needs a Main Method for everything, I think. Does the Main call some kind of class?
I have written a java code to transfer files from one server to another using the concept of socket programming. I got the codes from another java forum that meet my requirements. The program is said to transfer large sized files (like .mkv , .mprg movies) from one machine to another and can be used to transfer files of all formats. But after running the codes I found that the program is not able to transfer large sized files such as movies and even pdf of sizes 80mb or 111mb. When i transfer small sized files, it gets transferred and the output shows that. You can run the codes and observe it. But when i try to transfer large sized files, the program goes on running for hours. The large sized files are not getting transferred. The program has used bytebuffer but still this error occurs. The codes are as follows (I got them from this site [URL] ....)
**ClientMain.java**
import java.io.IOException; import java.net.Socket; public class ClientMain { private DirectoryTxr transmitter = null; Socket clientSocket = null;
[Code] .....
1. ClientMain.java and DirectoryTxr.java are the two classes under client application. 2. ServerMain.java and DirectoryRcr.java are the two classes under Server application. 3. run the ClientMain.java and ServerMain.java simultaneously
Also specify the source directory, destination directory and host address of the machine in which server is running in the ClientMain.java (as per your computer). Here we are not specifying source file, instead a source directory or folder is specifying. So the entire files of source directory will be transferred.