0

convert code c++ to java

#include <iostream> using namespace std; #define MAX_LENGTH 100 int main() { //program that asks you to enter your faculty name and departement then enter it using keyboard char name [MAX_LENGTH]={0}; string dep; cout<<" please enter your faculty name:"; cin.getline(name,MAX_LENGTH); cout<<" please enter your departement:"; cin>>dep; cout<<"my faculty is :"<<name<<endl; cout<<"my departement is :"<<dep<<endl; return 0; }

19th Mar 2020, 2:12 AM
A M
A M - avatar
2 Respostas
+ 4
We are humans not transpilers 🤪🙏. Try to do this yourself. It's just basic IO. First start learning Java. If you face difficulty while solving this problem then ask here. Also link the Java code in description of this question. https://code.sololearn.com/W26q4WtwSP8W/?ref=app
19th Mar 2020, 2:22 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar