10 More Discussions You Might Find Interesting
1. Programming
HI All
I am new to java in below code I am not able to understand the below line of code
Student9.change();
the complete code is mentioned as below
class Student9{
int rollno;
String name;
static String college = "ITS";
static void change(){
college = "BBDIT"; ... (2 Replies)
Discussion started by: scriptor
2 Replies
2. Programming
Hi all
I am currently learning Java (and Fortran!) on my own. I have written the following code but for some reason it does not work as it should
import javax.swing.JOptionPane;
class evenOdd {
public static void main(String args) {
String number, ans;
int num;
... (4 Replies)
Discussion started by: faizlo
4 Replies
3. Linux
Hi
How can I write a Java program to execute Linux commands? What is the best approach:
Invoking the Linux shell within Java and executing commands
or, using the Java APIs to do the stuff. Since it is platform independent, it'll know itself what to do. We need not check which OS the Java... (1 Reply)
Discussion started by: Dorothy
1 Replies
4. Programming
Hello
Please why the files have not created?
Thank you (0 Replies)
Discussion started by: chercheur857
0 Replies
5. Shell Programming and Scripting
Hello;
Is it possible to insert Java code in a shell script, if so how please?
Thank you (0 Replies)
Discussion started by: chercheur857
0 Replies
6. Shell Programming and Scripting
Hi,
I want to remove the following code from Source files (or replace the code with empty.) from all the source files in given directory.
finally {
if (null != hibernateSession && hibernateSession.isOpen()) {
//hibernateSession.close();
}
}
It would be great if the script has... (2 Replies)
Discussion started by: hareeshram
2 Replies
7. Programming
My desired output is
run:
for this 1
for this 2
for this 3
for this 4
for this 5
for this 1,2
1->2
for this 2,3
2->3
for this 3,4
3->4
for this 4,5
4->5
for this 1,2,3
1->2,3 (2 Replies)
Discussion started by: vaibhavkorde
2 Replies
8. Programming
I was creating a file using splitter and printwriter. The result in the file come out as:
TO:bbb,ccc,eee
Instead of,
TO:bbb
TO:ccc
TO:eee
May I know what's wrong with this? (1 Reply)
Discussion started by: eel
1 Replies
9. Programming
public class MyMail {
public static void main(String args) {
// TODO Auto-generated method stub
System.out.println("number of args " + args.length);
String from = "";
String to = "";
String subject = "";
String emailText = "";
for... (0 Replies)
Discussion started by: eel
0 Replies
10. Programming
Hi All,
I am trying to send a mail from Solaris 5.9 using JAVA code.but when I am trying to do the same.then I am not able to read a line(data) from buffer..I am only able to connect to SMTP server but not able to get the data from buffer.
when I am trying to read the line --
it is no able... (0 Replies)
Discussion started by: smartgupta
0 Replies