Click here to Skip to main content
15,512,456 members
Home / Discussions / Java
   

Java

 
QuestionGetting data from a web site using Jsoup Pin
David Crow20-Jan-22 5:59
David Crow20-Jan-22 5:59 
AnswerRe: Getting data from a web site using Jsoup Pin
englebart12-Feb-22 15:44
professionalenglebart12-Feb-22 15:44 
Questionjava program Pin
Ricca Marie Fantilanan11-Jan-22 3:21
Ricca Marie Fantilanan11-Jan-22 3:21 
AnswerRe: java program Pin
Richard MacCutchan11-Jan-22 3:40
mveRichard MacCutchan11-Jan-22 3:40 
AnswerRe: java program Pin
Member 1550241317-Jan-22 0:01
Member 1550241317-Jan-22 0:01 
GeneralRe: java program Pin
Pete O'Hanlon17-Jan-22 0:18
mvaPete O'Hanlon17-Jan-22 0:18 
GeneralRe: java program Pin
Richard MacCutchan17-Jan-22 1:39
mveRichard MacCutchan17-Jan-22 1:39 
AnswerRe: java program Pin
Prashanth Rao 202119-Jan-22 0:18
Prashanth Rao 202119-Jan-22 0:18 
import java.io.*;
public class SumOfPositive{
public static void main(String args[])throws Exception{
int sum=0;
System.out.println("Enter how many you need to add");
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int n=br.readLine();
for(int i=0;i<n;i++)
{
if(a[i])="=0)
" system.exit(0);
="" if(a[i]="">0)
sum=sum+a[i];
}
System.out.println("Sum of positive numbers:"+sum);
}
}
Questionhow do i properly connect my external style sheet link to my jsp page. Pin
jonathanIckovich25-Dec-21 20:42
jonathanIckovich25-Dec-21 20:42 
QuestionWhat is causing error in my merge sort java code? Pin
Vivek Halakatti3-Dec-21 6:20
Vivek Halakatti3-Dec-21 6:20 
AnswerRe: What is causing error in my merge sort java code? Pin
Richard MacCutchan3-Dec-21 7:09
mveRichard MacCutchan3-Dec-21 7:09 
QuestionWhat may be the error in this java ->merge sort code? Pin
Vivek Halakatti2-Dec-21 8:15
Vivek Halakatti2-Dec-21 8:15 
AnswerRe: What may be the error in this java ->merge sort code? Pin
Richard Deeming2-Dec-21 22:29
mveRichard Deeming2-Dec-21 22:29 
QuestionWhy am I getting an error concatenating a String in java 16? Pin
Toml61828-Nov-21 7:13
Toml61828-Nov-21 7:13 
AnswerRe: Why am I getting an error concatenating a String in java 16? Pin
Gerry Schmitz28-Nov-21 8:58
mveGerry Schmitz28-Nov-21 8:58 
QuestionRe: Why am I getting an error concatenating a String in java 16? Pin
Richard MacCutchan28-Nov-21 9:13
mveRichard MacCutchan28-Nov-21 9:13 
AnswerRe: Why am I getting an error concatenating a String in java 16? Pin
Toml61828-Nov-21 10:55
Toml61828-Nov-21 10:55 
Questionhelp with 2d cellular automata in JavaSwing Pin
Suave6519-Nov-21 10:10
Suave6519-Nov-21 10:10 
QuestionRe: help with 2d cellular automata in JavaSwing Pin
Richard MacCutchan19-Nov-21 22:55
mveRichard MacCutchan19-Nov-21 22:55 
QuestionSending BufferedImage thought a socket Pin
Valentinor8-Oct-21 3:10
Valentinor8-Oct-21 3:10 
AnswerRe: Sending BufferedImage thought a socket Pin
jschell24-Oct-21 7:53
jschell24-Oct-21 7:53 
GeneralRe: Sending BufferedImage thought a socket Pin
Valentinor24-Oct-21 22:40
Valentinor24-Oct-21 22:40 
GeneralRe: Sending BufferedImage thought a socket Pin
jschell23-Dec-21 6:29
jschell23-Dec-21 6:29 
AnswerRe: Sending BufferedImage thought a socket Pin
Gerry Schmitz25-Oct-21 9:35
mveGerry Schmitz25-Oct-21 9:35 
AnswerRe: Sending BufferedImage thought a socket Pin
Joop Eggen 202125-Nov-21 7:15
Joop Eggen 202125-Nov-21 7:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.