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.

But What exactly meaning of OpenSource?

View Replies


ADVERTISEMENT

Meaning Of Program Keywords

Feb 1, 2014

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......

View Replies View Related

Meaning Of String Or Immutable Class

Aug 26, 2014

this is my code :

String name = "Mohan";

String is a immutable class and where these character stored when we assign some character. How the logics are working inside the String class.

View Replies View Related

Meaning Of Double Curly Brace In Set

Feb 14, 2014

I saw code like this.

Set<String> set = new HashSet<String>(){{ add("Hello"); }};

I can understand that it is a HashSet with one element "Hello" in it. I don't understand this syntax. Why there are double curly braces?

View Replies View Related

Instances Of Objects In Java Versus Other Languages

May 22, 2015

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?

View Replies View Related

Java - Multiple Languages In Dialog Boxes

Oct 22, 2014

My application (e.g., the print dialog box) needs to support multiple languages (user selected either at starting application or by switch in code).

How can this be achieved under Windows 7, Enterprise (works OK under Linux). I have tried : E.g.,

Locale.setDefault( .. );
JComponent.setDefaultLocale(Locale.LANG);
Setting resource bundle

but to no avail. The application always inherit the Win 7 system locale.

View Replies View Related

JavaFX 2.0 :: How To Reload Screen When Changing Languages

Mar 19, 2015

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.

    @Override
    public void start(Stage stage) throws Exception
    {
        this.stage = stage;
        Locale locale = Locale.getDefault();
        ResourceBundle rb = ResourceBundle.getBundle("resources/Label",locale);

[Code] .....

Here is the function to change the language(in the same class with start function),the rb is the new ResourceBundle:

    public void refresh(ResourceBundle rb)
    {
          //change the language here
     }
  
1. I don't want to use the resourceBundle to get value in resource file and set label in scene one by one.like following:

this.btnLabel.setText(rb.getString(key.test));
...
 
2. I don't want to reload the scene,like following:

    public void refresh(ResourceBundle rb)
    {
         try
        {
            loader = new FXMLLoader(getClass().getResource("FXMLDocument.fxml"),rb);
            root = (Parent)loader.load();

[Code] .....
 
So do we have a solution to just set the resourceBundle and reload the scene easier?

View Replies View Related

JSP / JSTL :: How To Implement Textarea / Text Box To Accept Multiple Languages

Mar 25, 2013

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?

View Replies View Related

Read Line From File And Save First String As Word And Remaining As Meaning

Jul 6, 2014

I have written the code to read the line from file and save first string as word and and remaining string as meaning..

E.g.: innovation a new method, idea, product, etc.

word = innovation

meaning = a new method, idea, product, etc.

In my code there is no error and have a mistake what it is means first assigning word is ok and while saving meaning ..it saves like

{
a a new a new method } like that

Java Code:

import java.io.BufferedReader;
import java.io.FileReader;
public class Dil{
public static void main(String[] arg)throws Exception
{
BufferedReader in;

[Code] ......

View Replies View Related

How To Cut IDE Out Of Programming

Nov 17, 2014

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?

View Replies View Related

Swing GUI Programming

Jan 6, 2014

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?

View Replies View Related

UDP Server Programming In Java

Apr 15, 2015

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];

[Code] ....

View Replies View Related

Programming About Finding Triangle

Nov 25, 2014

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.

View Replies View Related

Programming LightsOut Game

May 3, 2014

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:

public class TestLightsOut {
public static void main(String[] args) {
// TODO Auto-generated method stub
int[][] blocks = new int[5][5];
String[] letters = { "A", "B", "C", "D", "E" };
String[] numbers = { " ", " ", " ", " ", "1 ", "2 ", "3 ", "4 ", "5 " };
String[] line = { " ", " ", "_", "_", "_", "_", "_", "_", "_",
"_", "_", "_", "_" };

[code]...

View Replies View Related

Difference Between Algorithm And Programming

Feb 21, 2014

What is difference between algorithm and programming?How to develope algorithm knowledge?

View Replies View Related

Programming To Registry - Preferences API

Feb 17, 2014

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?

View Replies View Related

Java Programming - Coins In A Jar

Apr 3, 2014

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."

View Replies View Related

Programming With Fingerprint SDK Java

May 1, 2014

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.

View Replies View Related

Genetic Algorithm Programming

Oct 13, 2014

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" ....

View Replies View Related

Common Characteristic In Programming Language

May 12, 2014

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.

View Replies View Related

Programming A Simple Password Checker

Aug 30, 2014

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

[code]....

View Replies View Related

Where To Use Accept Routine In Socket Programming

Sep 2, 2014

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)

View Replies View Related

Programming Conway Game Of Life

Nov 17, 2014

I am having some trouble programming the Game of Life algorithm.

View Replies View Related

Use Java Programming For Image Processing

Feb 12, 2015

can we use java programming for image processing. if yes then how do we do it?

View Replies View Related

Event Driven Programming / No Main Method

Jan 29, 2015

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.

import javafx.application.Application;
import javafx.geometry.Pos;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.HBox;
import javafx.stage.Stage;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;

[code]....

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?

View Replies View Related

File Transfer In Java Using Socket Programming

Apr 7, 2014

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.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved