This file contains hidden or 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
package com.test.connection; | |
import java.sql.*; | |
public class GetData { | |
public static void main( String args[]) { | |
String connectionURL = "jdbc:mysql://localhost:3306/test?user=root&password=root"; | |
// Change the connection string according to your db, ip, username and password |
This file contains hidden or 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
package com.learn.example7.classes | |
class Song { | |
def name | |
def artist | |
def genre | |
String toString() | |
{ | |
"${name} is a great song of genre type ${genre} composed by the artist ${artist}" |
This file contains hidden or 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
a;lksdjfasldkjf | |
as | |
f | |
asd | |
f | |
sadf | |
as | |
df |
This file contains hidden or 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
<html> | |
<style> | |
#ver-minimalist | |
{ | |
font-family: "Lucida Sans Unicode", "Lucida Grande", Sans- | |
Serif; | |
font-size: 12px; | |
margin: 45px; | |
width: 480px; |
This file contains hidden or 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
package com.test; | |
import java.io.FileNotFoundException; | |
import javax.xml.transform.TransformerFactory; | |
import javax.xml.transform.stream.StreamResult; | |
import javax.xml.transform.stream.StreamSource; | |
import javax.xml.transform.Transformer; | |
import javax.xml.transform.TransformerConfigurationException; | |
import javax.xml.transform.TransformerException; | |
import java.io.FileOutputStream; |
This file contains hidden or 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 org.exolab.castor.xml.MarshalException; | |
import org.exolab.castor.xml.Marshaller; | |
import org.exolab.castor.xml.ValidationException; | |
import com.bean.Item; | |
public class MarshalDemo1 { | |
public static void main(String[] args) { | |
Item item=new Item(); | |
item.setName("Coffee Mocha"); |
This file contains hidden or 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
package com.learn.first; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
public class ExecuteProcess { | |
public static void main(String[] args) { | |
try | |
{ |
This file contains hidden or 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
package com.tester; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import org.exolab.castor.xml.MarshalException; | |
import org.exolab.castor.xml.Unmarshaller; | |
import org.exolab.castor.xml.ValidationException; | |
import com.bean.Item; |