Horje
copy one string to another without using any loops or assignment operator Code Example
copy one string to another without using any loops or assignment operator
public class MyServerSide {

    public static void main(String[] args) {
        String str1 = "Hello World!;
        String str2;
        for (int 1=0; i < str1.length(); i++){
            if (i>=3){
                str2.charAt(i) = str1.charAt(i);//Here is the problem. It gives me an error
                                                //Saying that the left argument must be a 
                                                //variable

            }//End of if statement
        }//End of for loop
    }//End of main method
}//End of class




Java

Related
single line comment in java Code Example single line comment in java Code Example
java compareto jdei stackoverflow Code Example java compareto jdei stackoverflow Code Example
get subarray of String java Streams Code Example get subarray of String java Streams Code Example
traversing treemap in java Code Example traversing treemap in java Code Example
A method that returns a stream of JUnit Arguments Code Example A method that returns a stream of JUnit Arguments Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9