This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HelloWorld{ | |
public static void main(String args[]){ | |
System.out.println("Hello World !"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String stringExample(){ | |
String nameArray [] = {"Brown","Mike","Jhone"}; | |
String nameList = ""; | |
for(String name : nameArray){ | |
nameList += name+","; | |
} | |
return nameList; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String stringBufferExample(){ | |
String nameArray [] = {"Brown","Mike","Jhone"}; | |
StringBuffer stringBuffer = new StringBuffer(); | |
for(String name : nameArray){ | |
stringBuffer.append(name+","); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" | |
xmlns:a="http://www.w3.org/2005/08/addressing" | |
xmlns:u="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> | |
<s:Header> | |
<a:Action s:mustUnderstand="1">http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue</a:Action> | |
<a:ReplyTo> | |
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address> | |
</a:ReplyTo> | |
<a:To s:mustUnderstand="1">https://login.microsoftonline.com/extSTS.srf</a:To> | |
<o:Security s:mustUnderstand="1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.Text; | |
using System.Net; | |
using System.Xml; | |
namespace GmailReader | |
{ | |
class MailController | |
{ | |
List<Mail> Mails = new List<Mail>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace GmailReader | |
{ | |
class Mail | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<accessibility-mode>UserSession.accessibilityMode</accessibility-mode> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.auth0.jwt.JWT; | |
import com.auth0.jwt.interfaces.DecodedJWT; | |
public class ApplicationSessionBean{ | |
/** | |
* Inorder to avoid misusages of JWT key, this Method use to validate JWT. | |
* Validate JWT key issued within 30s or not. | |
* @param jwt | |
* @return true/false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Date converterSerialToDate(int serialNumber){ | |
Calendar calender; | |
calender = Calendar.getInstance(); | |
calender.clear(); | |
calender.set(1899, 11, 31); | |
calender.add(Calendar.DATE, serialNumber); | |
return calender.getTime(); | |
} |
OlderNewer