Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
call function
//'main' method must be in a class 'Rextester'. //Compiler version 1.8.0_111 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]){ String question = "Which course have you opted"; System.out.println(Answer.submit(question )); } } class Answer{ static String answer = " programming in Java"; static String submit(String question){ return("the answer ,"+question+"is"+answer); } }
run
|
edit
|
history
|
help
0
Reverse Number in java
Hello
javaLP(Multi)
2.C
Just numbers
상속1
patterns
2(B)
Coding Numbers - Duplicate - Array
First Unique Character in a String