Computer Science, asked by devula7308, 1 year ago

write a program to print your name ,school name in same line in java

Answers

Answered by charlie1505
3

Answer:

import java.lang.*;

public class JavaProgram

{

public static void main(String args[])

{

String str;

String str2;

System.out.print(" "+str + str2);

}

}

Explanation:

here str for your name and str2 for college name

System.out.print Statment will print the name and school name in same line

Similar questions