Beruflich Dokumente
Kultur Dokumente
Program 01:
// Write code below
char seq[] = input.toCharArray();
int outflag=0;
Program 02:
try{
URL url=new URL("http://www.Nptel.com/java-tutorial");
//use appropriate code to print the protocol name and host name from url
System.out.println("Protocol: "+url.getProtocol());
System.out.println("Host Name: "+url.getHost());
}
catch(Exception e){System.out.println(e);}
}
}
Program 03:
//Read your first name
String f = s1.next();
//Read your last name
String l = s1.next();
//Read rollnumber
int n = s1.nextInt();
Program 04:
public static void main(String[] args) {
}
}
Program 05:
return 2*n-1 + sum_odd_n(n-1);